pass epoch to my_main
This commit is contained in:
parent
356f193c68
commit
3daecf4f3e
@ -20,7 +20,7 @@ pipeline {
|
||||
}
|
||||
stage('Train model with sacred') {
|
||||
steps {
|
||||
sh 'python3 ./biblioteka_DL/dllib.py $EPOCHS'
|
||||
sh 'python3 ./biblioteka_DL/dllib.py with "epochs=$EPOCHS"''
|
||||
archiveArtifacts artifacts: 'model.pkl, s444018_sacred_FileObserver/**/*.*, result.csv', followSymlinks: false
|
||||
}
|
||||
}
|
||||
|
@ -168,6 +168,7 @@ def my_main(epochs, _run):
|
||||
|
||||
_run.log_scalar("RMSE", rmse)
|
||||
_run.log_scalar("MSE", mse)
|
||||
_run.info['epochs'] = epochs
|
||||
|
||||
# ex.run()
|
||||
ex.add_artifact("model.pkl")
|
||||
|
Loading…
Reference in New Issue
Block a user