init
This commit is contained in:
parent
953eba2ea1
commit
174269f928
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -20,8 +20,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('archiveArtifacts') {
|
stage('archiveArtifacts') {
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts 'wer.png'
|
archiveArtifacts 'plot.png'
|
||||||
archiveArtifacts 'srr.png'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
19
plot.py
19
plot.py
@ -1,8 +1,5 @@
|
|||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
|
|
||||||
fig_wer, ax_wer = plt.subplots()
|
|
||||||
fig_srr, ax_srr = plt.subplots()
|
|
||||||
|
|
||||||
X1, Y1 = [], []
|
X1, Y1 = [], []
|
||||||
X2, Y2 = [], []
|
X2, Y2 = [], []
|
||||||
y_num=1
|
y_num=1
|
||||||
@ -11,16 +8,18 @@ for line in open('wer.txt', 'r'):
|
|||||||
X1.append(y_num)
|
X1.append(y_num)
|
||||||
y_num=y_num+1
|
y_num=y_num+1
|
||||||
|
|
||||||
ax_wer.plot(X1, Y1)
|
|
||||||
ax_wer.set_title("WER")
|
|
||||||
fig_wer.savefig('wer.png')
|
|
||||||
|
|
||||||
y_num=1
|
y_num=1
|
||||||
for line in open('srr.txt', 'r'):
|
for line in open('srr.txt', 'r'):
|
||||||
Y2.append(float(line[:-1]))
|
Y2.append(float(line[:-1]))
|
||||||
X2.append(y_num)
|
X2.append(y_num)
|
||||||
y_num=y_num+1
|
y_num=y_num+1
|
||||||
|
|
||||||
ax_srr.plot(X2, Y2)
|
fig, ax = plt.subplots()
|
||||||
ax_srr.set_title("SRR")
|
plt.xticks(probs)
|
||||||
fig_srr.savefig('srr.png')
|
plt.title("WER SRR")
|
||||||
|
plt.xlabel("Number")
|
||||||
|
plt.ylabel("Value")
|
||||||
|
plt.plot(X1, Y1)
|
||||||
|
plt.plot(X1, Y2)
|
||||||
|
ax.legend(["WER", "SRR"])
|
||||||
|
plt.savefig('plot.png')
|
Loading…
Reference in New Issue
Block a user