From ceb45f69b711073071410ba4e6754cc110e75eb8 Mon Sep 17 00:00:00 2001 From: Sheaza Date: Sun, 9 Jun 2024 18:12:23 +0200 Subject: [PATCH] sacred fix 2 --- train_sacred.py | 6 +++--- training/Jenkinsfile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/train_sacred.py b/train_sacred.py index 06a74d5..1fe9a55 100644 --- a/train_sacred.py +++ b/train_sacred.py @@ -6,9 +6,9 @@ from sacred import Experiment from sacred.observers import FileStorageObserver, MongoObserver ex = Experiment("464980", interactive=True, save_git_info=False) -ex.observers.append(FileStorageObserver('experiments')) -ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@tzietkiewicz.vm.wmi.amu.edu.pl:27017', - db_name='sacred')) +ex.observers.append(FileStorageObserver('./experiments')) +# ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@tzietkiewicz.vm.wmi.amu.edu.pl:27017', +# db_name='sacred')) @ex.capture diff --git a/training/Jenkinsfile b/training/Jenkinsfile index 3753adb..53b98f9 100644 --- a/training/Jenkinsfile +++ b/training/Jenkinsfile @@ -47,7 +47,7 @@ pipeline { steps { sh "chmod +x ./train_sacred.py" sh "python ./train_sacred.py --epochs ${params.EPOCHS}" - archiveArtifacts artifacts: 'experiments', onlyIfSuccessful: true + archiveArtifacts artifacts: './experiments', onlyIfSuccessful: true } } stage('Run training'){