metric plot png
All checks were successful
s444417-training/pipeline/head This commit looks good
s444417-evaluation/pipeline/head This commit looks good

This commit is contained in:
s444417 2022-05-07 12:12:25 +02:00
parent 1f9b14e67f
commit 8ff4f6931a
3 changed files with 17 additions and 2 deletions

View File

@ -33,7 +33,7 @@ pipeline {
copyArtifacts projectName: 's444417-create-dataset' copyArtifacts projectName: 's444417-create-dataset'
copyArtifacts projectName: "s444417-training/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true copyArtifacts projectName: "s444417-training/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true
sh 'python3 ./src/evalScript.py' sh 'python3 ./src/evalScript.py'
archiveArtifacts 'trainResults.csv' archiveArtifacts 'trainResults.csv, metrics.png'
script { script {
metric = sh ( metric = sh (
script: 'tail -1 trainResults.csv', script: 'tail -1 trainResults.csv',

View File

@ -55,6 +55,7 @@ try:
plt.ylabel('losses') plt.ylabel('losses')
plt.title('loss for build') plt.title('loss for build')
plt.legend() plt.legend()
plt.show() plt.savefig('metrics.png')
except: except:
pass pass

14
trainResults.csv Normal file
View File

@ -0,0 +1,14 @@
0,313079.90625
1,313079.90625
2,313079.90625
3,306069.59375
4,304609.71875
5,305697.21875
6,300981.3125
7,306224.8125
8,305891.34375
9,304945.34375
10,300250.75
11,306163.84375
12,304345.53125
13,304496.6875
1 0 313079.90625
2 1 313079.90625
3 2 313079.90625
4 3 306069.59375
5 4 304609.71875
6 5 305697.21875
7 6 300981.3125
8 7 306224.8125
9 8 305891.34375
10 9 304945.34375
11 10 300250.75
12 11 306163.84375
13 12 304345.53125
14 13 304496.6875