-
Notifications
You must be signed in to change notification settings - Fork 0
/
huitu_1.py
28 lines (27 loc) · 872 Bytes
/
huitu_1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import numpy as np
import matplotlib.pyplot as plt
nopre_5 = np.fromfile("1e-5_nopre.bin", dtype=np.float32)
nopre_4 = np.fromfile("1e-4_nopre.bin", dtype=np.float32)
nopre_3 = np.fromfile("1e-3_nopre.bin", dtype=np.float32)
pre_5 = np.fromfile("1e-5_pre.bin", dtype=np.float32)
pre_4 = np.fromfile("1e-4_pre.bin", dtype=np.float32)
pre_3 = np.fromfile("1e-3_pre.bin", dtype=np.float32)
n5 = range(len(nopre_5))
n4 = range(len(nopre_4))
n3 = range(len(nopre_3))
p5 = range(len(pre_5))
p4 = range(len(pre_4))
p3 = range(len(pre_3))
common = range(6000)
print(n5)
plt.plot(common,pre_5[:6000],label='1e-5')
plt.plot(common,pre_4[:6000],label='1e-4')
plt.plot(common,pre_3[:6000],label='1e-3')
plt.legend()
#plt.show()
#foo_fig = plt.gcf() # 'get current figure'
#foo_fig.savefig('nopre_difflr.eps', format='eps', dpi=500)
plt.show()
#plt.plot(rnn,'b')
#plt.plot(adam,'r')
#