-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcifar10_temp.py
More file actions
23 lines (16 loc) · 933 Bytes
/
Copy pathcifar10_temp.py
File metadata and controls
23 lines (16 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import matplotlib.pyplot as plt
from readData import *
#dependent_student,0.001
path="cifar10_results/Dependent_student_learning_rate_0.001/"
#dependent_student_conv4_fc1
dependent_student_conv4_fc1_1epoch = save_data_to_list(read_data(path+"conv4_fc1_1epoch"))
print("dependent_student_conv4_fc1_1epoch: " + str(caculate_convergence_time(dependent_student_conv4_fc1_1epoch)))
plt.plot(dependent_student_conv4_fc1_1epoch, label="dependent_student_conv4_fc1_1epoch")
#dependent_student_conv4_fc1, new method
dependent_student_conv4_fc1_new_1epoch = save_data_to_list(read_data(path+"conv4_fc1_newMethod_1epoch"))
print("dependent_student_conv4_fc1_new_1epoch: " + str(caculate_convergence_time(dependent_student_conv4_fc1_new_1epoch)))
plt.plot(dependent_student_conv4_fc1_new_1epoch, label="dependent_student_conv4_fc1_new_1epoch(new method)")
plt.xlabel("iteration")
plt.ylabel("accuracy")
plt.legend().draggable()
plt.show()