From 5c77cd840208e977a9f4d4cec3969c764fb9930f Mon Sep 17 00:00:00 2001 From: Maciej Sobkowiak Date: Mon, 17 May 2021 00:37:43 +0200 Subject: [PATCH] . --- sacred_training.py | 6 +++--- train.Jenkinsfile | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sacred_training.py b/sacred_training.py index 420ec36..054201e 100644 --- a/sacred_training.py +++ b/sacred_training.py @@ -10,9 +10,9 @@ from sklearn.metrics import mean_squared_error from sacred.observers import MongoObserver ex = Experiment("434784_sacred_scopes", interactive=False, save_git_info=False) -ex.observers.append(FileStorageObserver('sacred_runs')) -# ex.observers.append(MongoObserver( -# url='mongodb://mongo_user:mongo_password_IUM_2021@localhost:27017', db_name='sacred')) +ex.observers.append(FileStorageObserver('sacred_runs/runs')) +ex.observers.append(MongoObserver( + url='mongodb://mongo_user:mongo_password_IUM_2021@localhost:27017', db_name='sacred')) @ex.config diff --git a/train.Jenkinsfile b/train.Jenkinsfile index 7ab5637..601d28e 100644 --- a/train.Jenkinsfile +++ b/train.Jenkinsfile @@ -37,7 +37,7 @@ pipeline { image.inside{ sh 'chmod +x training.py' sh 'chmod +x sacred_training.py' - sh 'python3 training.py ${EPOCHS} ${BATCH_SIZE}' + // sh 'python3 training.py ${EPOCHS} ${BATCH_SIZE}' sh 'python3 sacred_training.py' } } @@ -46,15 +46,15 @@ pipeline { stage('archive-model') { steps{ archiveArtifacts 'suicide_model.h5' - archiveArtifacts 'sacred_runs/**' + archiveArtifacts 'sacred_runs/**' } } - stage('send-mail') { - steps{ - emailext body: currentBuild.result ?: 'SUCCESS', - subject: 's434784-training', - to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' - } - } + // stage('send-mail') { + // steps{ + // emailext body: currentBuild.result ?: 'SUCCESS', + // subject: 's434784-training', + // to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' + // } + // } } } \ No newline at end of file