def display(pklfile, request=['train_data_accuracy', 'train_sample_accuracy']) :
for key in request :
plt.plot(pklfile[key], label=key)
plt.legend(bbox_to_anchor=(0., 1.02, 1., .102), loc=3,
ncol=len(request), mode="expand", borderaxespad=0.)
plt.show()
评论列表
文章目录