up
This commit is contained in:
parent
18d6075997
commit
a97f1eb88a
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*.png
|
||||||
|
*.txt
|
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -24,4 +24,4 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
16
plot.py
16
plot.py
@ -5,22 +5,22 @@ X2, Y2 = [], []
|
|||||||
|
|
||||||
y_num = 1
|
y_num = 1
|
||||||
for line in open('wer.txt', 'r'):
|
for line in open('wer.txt', 'r'):
|
||||||
Y1.append(float(line[:-1]))
|
Y1.append(float(line[:-1]))
|
||||||
X1.append(y_num)
|
X1.append(y_num)
|
||||||
y_num=y_num+1
|
y_num = y_num + 1
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
fig, ax = plt.subplots()
|
fig, ax = plt.subplots()
|
||||||
plt.xticks(X1)
|
plt.xticks(X1)
|
||||||
plt.title("WER SRR")
|
plt.title("WER/SRR")
|
||||||
plt.xlabel("Number")
|
plt.xlabel("Number")
|
||||||
plt.ylabel("Value")
|
plt.ylabel("Value")
|
||||||
plt.plot(X1, Y1)
|
plt.plot(X1, Y1)
|
||||||
plt.plot(X1, Y2)
|
plt.plot(X1, Y2)
|
||||||
ax.legend(["WER", "SRR"])
|
ax.legend(["WER", "SRR"])
|
||||||
plt.savefig('plot.png')
|
plt.savefig('plot.png')
|
||||||
|
Loading…
Reference in New Issue
Block a user