This commit is contained in:
Wojciech Lidwin 2023-05-12 04:11:40 +02:00
parent 6d0b20d7bf
commit d27239a7d1
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ node {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's487197', url: 'https://git.wmi.amu.edu.pl/s487197/ium_487197']]]) checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's487197', url: 'https://git.wmi.amu.edu.pl/s487197/ium_487197']]])
} }
stage('Dockerfile'){ stage('Dockerfile'){
def testImage = docker.image('s487197/ium:45') def testImage = docker.image('s487197/ium:46')
testImage.inside{ testImage.inside{
copyArtifacts filter: 'baltimore_train.csv', projectName: 's487197-create-dataset' copyArtifacts filter: 'baltimore_train.csv', projectName: 's487197-create-dataset'
sh "python3 ium_sacred.py -epochs $EPOCHS -lr $LR -validation_split $VALIDATION_SPLIT" sh "python3 ium_sacred.py -epochs $EPOCHS -lr $LR -validation_split $VALIDATION_SPLIT"

View File

@ -14,7 +14,8 @@ import math
ex = Experiment('s487197-train', save_git_info=False,interactive=True) ex = Experiment('s487197-train', save_git_info=False,interactive=True)
ex.observers.append(FileStorageObserver('sacred_results'))
ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@172.17.0.1:27017', db_name='sacred'))
#ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@172.17.0.1:27017', db_name='sacred')) #ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@172.17.0.1:27017', db_name='sacred'))
@ -79,8 +80,7 @@ def my_main(epochs, lr, validation_split, _run):
_run.log_scalar('training.loss', his[1]['loss']) _run.log_scalar('training.loss', his[1]['loss'])
_run.log_scalar('accuracy', his[1]['accuracy']) _run.log_scalar('accuracy', his[1]['accuracy'])
ex.add_artifact('baltimore_model') ex.add_artifact('baltimore_model')
ex.observers.append(FileStorageObserver('sacred_results'))
ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@172.17.0.1:27017', db_name='sacred'))
""" """
baltimore_data_test =pd.read_csv('baltimore_test.csv') baltimore_data_test =pd.read_csv('baltimore_test.csv')
baltimore_data_test.columns = train.columns baltimore_data_test.columns = train.columns