save results
All checks were successful
s434784-evaluation/pipeline/head This commit looks good
s434784-training/pipeline/head This commit looks good

This commit is contained in:
Maciej Sobkowiak 2021-05-16 22:58:56 +02:00
parent ba432415fb
commit 7c428075a4
2 changed files with 9 additions and 5 deletions

View File

@ -31,5 +31,10 @@ pipeline {
} }
} }
} }
stage('archive-artifacts') {
steps{
archiveArtifacts 'results.txt'
}
}
} }
} }

View File

@ -30,10 +30,9 @@ model.summary()
model.load_weights('suicide_model.h5') model.load_weights('suicide_model.h5')
predictions = model.predict(X_test)
# predictions = model.predict(X_test) error = mean_squared_error(y_test, predictions)
# error = mean_squared_error(y_test, predictions) with open('results.txt', 'a') as f:
f.write(str(error) + "\n")
# with open('eval_results.txt', 'a') as f:
# f.write(str(error) + "\n")