update jenkinsfile_train-sacred and dllib-sacred.py
All checks were successful
s444356-evaluation/pipeline/head This commit looks good
s444356-training/pipeline/head This commit looks good

This commit is contained in:
Maciej Czajka 2022-05-04 23:57:12 +02:00
parent 57131404c2
commit 8da3f0fe99
2 changed files with 7 additions and 4 deletions

View File

@ -17,9 +17,7 @@ from sacred.observers import MongoObserver
# EPOCHS = int(sys.argv[1])
ex = Experiment()
ex.observers.append(FileStorageObserver('my_runs'))
# exint = Experiment("sacred_scopes", interactive=True)
ex.observers.append(FileStorageObserver('my_run'))
@ex.config
def my_config():

View File

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