- 博客(3)
- 问答 (1)
- 收藏
- 关注
原创 报错:module ‘keras.optimizers‘ has no attribute ‘SGD‘
如果出现module ‘keras.optimizers’ has no attribute 'SGD’的错误model_final.compile(loss="categorical_crossentropy", optimizer=optimizers.SGD(lr=0.0001, momentum=0.9), metrics=["accuracy"])把代码改成这样即可model_final.compile(lo
2022-04-21 19:50:12
4197
原创 Tensorflow画loss和val_loss 、accuracy和 val_accuracy的图(便于分析)
首先,我们要知道哪儿里会产生这四个值?history = model_final.fit( train_generator, epochs=epochs, validation_data=validation_generator, validation_steps = int(nb_validation_samples / batch_size), callbacks=[checkpoint,early])当model.compile的metrics=[“acc
2022-04-21 19:44:27
3572
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人