Added file observer
All checks were successful
s444507-evaluation/pipeline/head This commit looks good
444507-training/pipeline/head This commit looks good

This commit is contained in:
Adam Wojdyla 2022-05-09 10:26:34 +02:00
parent d1376a046a
commit 10ed071e3d
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@ pipeline {
}
post {
success {
archiveArtifacts artifacts: 'prediction_results.csv, CarPrices_pytorch_model.pkl', followSymlinks: false
archiveArtifacts artifacts: 'prediction_results.csv, CarPrices_pytorch_model.pkl, s444507_sacred_FileObserver/**/*.*', followSymlinks: false
}
always {
emailext body: "${currentBuild.currentResult}", subject: 's444507-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'

View File

@ -11,7 +11,7 @@ import torch.nn.functional as F
import pandas as pd
from sklearn import preprocessing
import sys
from sacred.observers import MongoObserver
from sacred.observers import MongoObserver, FileStorageObserver
from sacred import Experiment
import random
import time
@ -19,6 +19,7 @@ import time
ex = Experiment(save_git_info=False)
ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@172.17.0.1:27017',
db_name='sacred'))
ex.observers.append(FileStorageObserver('s444507_sacred_FileObserver'))
@ex.config
def my_config():