diff --git a/Biblioteka_DL/dllib-sacred.py b/Biblioteka_DL/dllib-sacred.py index 97873a2..073a72d 100644 --- a/Biblioteka_DL/dllib-sacred.py +++ b/Biblioteka_DL/dllib-sacred.py @@ -17,7 +17,7 @@ from sacred.observers import MongoObserver # EPOCHS = int(sys.argv[1]) ex = Experiment() -ex.observers.append(FileStorageObserver('my_run')) +ex.observers.append(FileStorageObserver('my_res')) ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@172.17.0.1:27017', db_name='sacred')) @ex.config diff --git a/Jenkinsfile_train-sacred b/Jenkinsfile_train-sacred index cd4ca94..96a65c7 100644 --- a/Jenkinsfile_train-sacred +++ b/Jenkinsfile_train-sacred @@ -17,12 +17,12 @@ pipeline { steps { copyArtifacts filter: '*', projectName: 's444356-create-dataset' sh 'python Biblioteka_DL/dllib-sacred.py with "epochs=$EPOCHS"' - sh 'cp my_run/_sources/dllib* source_code.py' - sh 'cp my_run/1/config.json configuration.json' - sh 'cp my_run/1/info.json param.json' - sh 'cp my_run/1/games_model.pkl model.pkl' + sh 'cp my_res/_sources/dllib* source_code.py' + sh 'cp my_res/1/config.json configuration.json' + sh 'cp my_res/1/info.json param.json' + sh 'cp my_res/1/games_model.pkl model.pkl' archiveArtifacts artifacts: 'games_model.pkl, source_code.py, configuration.json, param.json, model.pkl' - sh 'rm -r my_run' + sh 'rm -r my_res' build job: 's444356-evaluation/master/' } }