Skip to content

Commit

Permalink
Merge pull request #12 from lan-qing/master
Browse files Browse the repository at this point in the history
Small typos in two files
  • Loading branch information
JavierAntoran authored Feb 28, 2020
2 parents caafb8b + 59ba197 commit 022b9ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion train_BayesByBackprop_MNIST.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
plt.xlabel('epoch')
plt.grid(b=True, which='major', color='k', linestyle='-')
plt.grid(b=True, which='minor', color='k', linestyle='--')
lgd = plt.legend(['test error', 'train error'], markerscale=marker, prop={'size': textsize, 'weight': 'normal'})
lgd = plt.legend(['train error', 'test error'], markerscale=marker, prop={'size': textsize, 'weight': 'normal'})
ax = plt.gca()
plt.title('classification costs')
for item in ([ax.title, ax.xaxis.label, ax.yaxis.label] +
Expand Down
4 changes: 2 additions & 2 deletions train_BootrapEnsemble_MNIST.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
plt.xlabel('epoch')
plt.grid(b=True, which='major', color='k', linestyle='-')
plt.grid(b=True, which='minor', color='k', linestyle='--')
lgd = plt.legend(['test error', 'train error'], markerscale=marker, prop={'size': textsize, 'weight': 'normal'})
lgd = plt.legend(['train error', 'test error'], markerscale=marker, prop={'size': textsize, 'weight': 'normal'})
ax = plt.gca()
plt.title('classification costs')
for item in ([ax.title, ax.xaxis.label, ax.yaxis.label] +
Expand Down Expand Up @@ -235,4 +235,4 @@
plt.savefig(results_dir + '/err%d.png' % iii, bbox_extra_artists=(lgd,), box_inches='tight')


save_object(weight_set_samples, models_dir+'/state_dicts.pkl')
save_object(weight_set_samples, models_dir+'/state_dicts.pkl')

0 comments on commit 022b9ce

Please sign in to comment.