update jenkinsfile_train-sacred, dllib-sacred.py
Some checks failed
s444356-evaluation/pipeline/head This commit looks good
s444356-training/pipeline/head There was a failure building this commit

This commit is contained in:
Maciej Czajka 2022-05-09 10:03:36 +02:00
parent 17b81d6b5b
commit 8cf33c46dc
2 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@ from sacred.observers import MongoObserver
# EPOCHS = int(sys.argv[1]) # EPOCHS = int(sys.argv[1])
ex = Experiment() 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.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@172.17.0.1:27017', db_name='sacred'))
@ex.config @ex.config

View File

@ -17,12 +17,12 @@ pipeline {
steps { steps {
copyArtifacts filter: '*', projectName: 's444356-create-dataset' copyArtifacts filter: '*', projectName: 's444356-create-dataset'
sh 'python Biblioteka_DL/dllib-sacred.py with "epochs=$EPOCHS"' sh 'python Biblioteka_DL/dllib-sacred.py with "epochs=$EPOCHS"'
sh 'cp my_run/_sources/dllib* source_code.py' sh 'cp my_res/_sources/dllib* source_code.py'
sh 'cp my_run/1/config.json configuration.json' sh 'cp my_res/1/config.json configuration.json'
sh 'cp my_run/1/info.json param.json' sh 'cp my_res/1/info.json param.json'
sh 'cp my_run/1/games_model.pkl model.pkl' sh 'cp my_res/1/games_model.pkl model.pkl'
archiveArtifacts artifacts: 'games_model.pkl, source_code.py, configuration.json, param.json, 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/' build job: 's444356-evaluation/master/'
} }
} }