Keras可视化(loss、accuracy)代码

一个很有趣的个人博客,不信你来撩 fangzengye.com



history = model.fit(x_train, y_train,
epochs=10000,
batch_size=128)

score = model.evaluate(x_test, y_test, batch_size=128)

print(history.history.keys())

plt.plot(history.history['loss'])
plt.plot(history.history['accuracy'])
plt.show()

posted @ 2020-03-14 14:44  开源的Boy  阅读(318)  评论(0)    收藏  举报