-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathplot_progress.py
More file actions
25 lines (23 loc) · 858 Bytes
/
plot_progress.py
File metadata and controls
25 lines (23 loc) · 858 Bytes
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
import numpy as np
from matplotlib import pyplot as plt
fig, ax = plt.subplots()
test_l2s = []
for i in range(5):
try:
ax.plot(np.load("./train_l2s_{}.npy".format(i)))
ax.plot(np.load("./val_l2s_{}.npy".format(i)))
train_vals = np.load("./train_l2s_{}.npy".format(i))
val_vals = np.load("./val_l2s_{}.npy".format(i))
test_vals = np.load("./test_vals_{}.npy".format(i))
test_l2s.append(test_vals)
#print(val_vals.shape)
print("{0:.6f}\t{1:.6f}\t{2:.6f}".format(np.min(train_vals), np.min(val_vals), test_vals[1]))
#raise
except FileNotFoundError:
print("WORKING ON: {}".format(i))
pass
try:
print("TEST MSE: {0:.6f} \t {1:.6f}".format(np.mean(test_l2s, axis=0)[1], np.std(test_l2s, axis=0)[1]))
except IndexError:
print("No completed runs.")
plt.show()