Download this file

12 lines (9 with data), 248 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
import matplotlib.pyplot as plt
loss = []
with open('loss.txt') as f:
content = f.readlines()
for i in range(len(content)):
loss.append(float(content[i].split()[-1]))
#print(loss)
plt.plot(loss[0:5000],linewidth=5,color = 'r')
plt.show()