update jenkinsfile_train-sacred and dllib-sacred.py
This commit is contained in:
parent
57131404c2
commit
8da3f0fe99
@ -17,9 +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_runs'))
|
ex.observers.append(FileStorageObserver('my_run'))
|
||||||
|
|
||||||
# exint = Experiment("sacred_scopes", interactive=True)
|
|
||||||
|
|
||||||
@ex.config
|
@ex.config
|
||||||
def my_config():
|
def my_config():
|
||||||
|
@ -17,8 +17,13 @@ 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 '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'
|
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/'
|
build job: 's444356-evaluation/master/'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user