update jenkinsfile_train-sacred, dllib-sacred.py
This commit is contained in:
parent
17b81d6b5b
commit
8cf33c46dc
@ -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
|
||||||
|
@ -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/'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user