2020
10-08
10-08
keras训练浅层卷积网络并保存和加载模型实例
这里我们使用keras定义简单的神经网络全连接层训练MNIST数据集和cifar10数据集:keras_mnist.pyfromsklearn.preprocessingimportLabelBinarizerfromsklearn.model_selectionimporttrain_test_splitfromsklearn.metricsimportclassification_reportfromkeras.modelsimportSequentialfromkeras.layers.coreimportDensefromkeras.optimizersimportSGDfromsklearnimportdatasetsimportmatplotlib.pyplotasplti...
继续阅读 >