2020
10-08
10-08
keras 模型参数,模型保存,中间结果输出操作
我就废话不多说了,大家还是直接看代码吧~'''Createdon2018-4-16'''importkerasfromkeras.modelsimportSequentialfromkeras.layersimportDensefromkeras.modelsimportModelfromkeras.callbacksimportModelCheckpoint,Callbackimportnumpyasnpimporttflearnimporttflearn.datasets.mnistasmnistx_train,y_train,x_test,y_test=mnist.load_data(one_hot=True)x_valid=x_test[:5000]y_valid=y_test[:5...
继续阅读 >