copy artifacts metrics
Some checks failed
s434765-evaluation/pipeline/head There was a failure building this commit

This commit is contained in:
Karolina Oparczyk 2021-05-20 18:19:54 +02:00
parent af166d8471
commit 693dd19e22
2 changed files with 6 additions and 1 deletions

View File

@ -15,17 +15,19 @@ node {
}
stage('Clone repo') {
docker.image("karopa/ium:12").inside {
docker.image("karopa/ium:13").inside {
stage('Test') {
checkout([$class: 'GitSCM', branches: [[name: '*/evaluation']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434765/ium_434765']]])
copyArtifacts fingerprintArtifacts: true, projectName: 's434765-create-dataset', selector: buildParameter("BUILD_DATASET")
copyArtifacts fingerprintArtifacts: true, projectName: 's434765-training/master/', selector: buildParameter("BUILD_MODEL")
copyArtifacts fingerprintArtifacts: true, projectName: 's434765-evaluation/evaluation/', selector: buildParameter("BUILD_EVALUATION")
sh '''
#!/usr/bin/env bash
chmod 777 evaluate_network.py
python3 evaluate_network.py | tee output.txt
'''
archiveArtifacts 'output.txt'
archiveArtifacts 'rmse.txt'
}
}
}

View File

@ -36,3 +36,6 @@ for (pred, test) in zip(prediction_denormalized, y_test.values):
error = mean_squared_error(y_test, prediction_denormalized)
print(error)
with open("rmse.txt", "a") as file:
file.write(error)