fix eval
All checks were successful
s444452-training/pipeline/head This commit looks good
s444452-evaluation/pipeline/head This commit looks good

This commit is contained in:
AdamOsiowy123 2022-05-16 08:29:22 +02:00
parent c172e81c88
commit af70e51b91

View File

@ -59,12 +59,14 @@ node {
stage('Run script') { stage('Run script') {
withEnv(["BUILD_NR=${params.BUILD_NR}","DATA_PATH=${params.DATA_PATH}","EPOCHS=${params.EPOCHS}", withEnv(["BUILD_NR=${params.BUILD_NR}","DATA_PATH=${params.DATA_PATH}","EPOCHS=${params.EPOCHS}",
"NUM_WORDS=${params.NUM_WORDS}", "BATCH_SIZE=${params.BATCH_SIZE}","PAD_LENGTH=${params.PAD_LENGTH}"]) { "NUM_WORDS=${params.NUM_WORDS}", "BATCH_SIZE=${params.BATCH_SIZE}","PAD_LENGTH=${params.PAD_LENGTH}"]) {
sh "chmod u+x Scripts/evaluate_neural_network.py"
sh "python3 Scripts/evaluate_neural_network.py $BUILD_NR $DATA_PATH $EPOCHS $NUM_WORDS $BATCH_SIZE $PAD_LENGTH" sh "python3 Scripts/evaluate_neural_network.py $BUILD_NR $DATA_PATH $EPOCHS $NUM_WORDS $BATCH_SIZE $PAD_LENGTH"
} }
} }
stage('Archive artifacts') { stage('Archive artifacts') {
archiveArtifacts "neural_network_evaluation.csv, evaluation.png" archiveArtifacts "neural_network_evaluation.csv, evaluation.png"
archiveArtifacts "my_runs/**" archiveArtifacts "my_runs/**"
archiveArtifacts "mlruns/**"
} }
} }
} catch (e) { } catch (e) {