Fix
This commit is contained in:
parent
13881f1708
commit
ff882d9109
@ -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:41')
|
def testImage = docker.image('s487197/ium:42')
|
||||||
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"
|
||||||
|
@ -75,7 +75,12 @@ 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
|
||||||
|
print(hist)
|
||||||
|
for his in hist:
|
||||||
|
_run.log_scalar('training.loss', his['loss'])
|
||||||
|
_run.log_scalar('accuracy', his['accuracy'])
|
||||||
|
ex.add_artifact('baltimore_model')
|
||||||
|
"""
|
||||||
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
|
||||||
baltimore_data_test, x_test, y_test = get_x_y(baltimore_data_test)
|
baltimore_data_test, x_test, y_test = get_x_y(baltimore_data_test)
|
||||||
@ -101,8 +106,9 @@ def my_main(epochs, lr, validation_split, _run):
|
|||||||
_run.log_scalar('accuracy', data['accuracy'])
|
_run.log_scalar('accuracy', data['accuracy'])
|
||||||
_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.add_artifact('baltimore_model')
|
|
||||||
|
|
||||||
ex.run()
|
ex.run()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user