2020
10-08
10-08
keras训练曲线,混淆矩阵,CNN层输出可视化实例
训练曲线defshow_train_history(train_history,train_metrics,validation_metrics):plt.plot(train_history.history[train_metrics])plt.plot(train_history.history[validation_metrics])plt.title('TrainHistory')plt.ylabel(train_metrics)plt.xlabel('Epoch')plt.legend(['train','validation'],loc='upperleft')#显示训练过程defplot(history):plt.figure(figsize=(12,4))plt.subplot(1,2,1)show_train_...
继续阅读 >