metric plot png
This commit is contained in:
parent
1f9b14e67f
commit
8ff4f6931a
@ -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',
|
||||||
|
@ -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
14
trainResults.csv
Normal 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
|
|
Loading…
Reference in New Issue
Block a user