Fix
This commit is contained in:
parent
4b806ee498
commit
05b83727ff
@ -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:50')
|
def testImage = docker.image('s487197/ium:51')
|
||||||
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"
|
||||||
|
@ -78,9 +78,9 @@ def my_main(epochs, lr, validation_split, _run):
|
|||||||
validation_split=validation_split)
|
validation_split=validation_split)
|
||||||
hist = pd.DataFrame(history.history)
|
hist = pd.DataFrame(history.history)
|
||||||
hist['epoch'] = history.epoch
|
hist['epoch'] = history.epoch
|
||||||
for his in hist.iterrows():
|
#for his in hist.iterrows():
|
||||||
_run.log_scalar('training.loss', his[1]['loss'])
|
_run.log_scalar('training.loss', hist['loss'])
|
||||||
_run.log_scalar('accuracy', his[1]['accuracy'])
|
_run.log_scalar('accuracy', hist['accuracy'])
|
||||||
model.save('baltimore_model')
|
model.save('baltimore_model')
|
||||||
ex.add_artifact('baltimore_model')
|
ex.add_artifact('baltimore_model')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user