Compare commits

...

2 Commits

Author SHA1 Message Date
Wojciech Lidwin
cdf8523c94 Fix 2023-05-12 04:39:40 +02:00
Wojciech Lidwin
19b8ac4d4a Fix 2023-05-12 04:38:22 +02:00
2 changed files with 3 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:47') def testImage = docker.image('s487197/ium:49')
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

@ -53,7 +53,7 @@ def my_config():
def prepare_message(epochs, lr, validation_split): def prepare_message(epochs, lr, validation_split):
return "{0} {1} {2}!".format(epochs, lr, validation_split) return "{0} {1} {2}!".format(epochs, lr, validation_split)
@ex.main @ex.automain
def my_main(epochs, lr, validation_split, _run): def my_main(epochs, lr, validation_split, _run):
train = pd.read_csv('baltimore_train.csv') train = pd.read_csv('baltimore_train.csv')
@ -109,6 +109,5 @@ def my_main(epochs, lr, validation_split, _run):
_run.log_scalar('rmse', data['rmse']) _run.log_scalar('rmse', data['rmse'])
_run.log_scalar('accuracy', data['accuracy']) _run.log_scalar('accuracy', data['accuracy'])
""" """
#ex.run()
ex.run_commandline()