sacred fix 2

This commit is contained in:
Sheaza 2024-06-09 18:12:23 +02:00
parent 343ebbf307
commit ceb45f69b7
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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'){