其他分享
首页 > 其他分享> > TypeError: fit() got an unexpected keyword argument 'nb_epoch'

TypeError: fit() got an unexpected keyword argument 'nb_epoch'

作者:互联网

model.fit(trainX, trainY, nb_epoch=200, batch_size=2, verbose=2)

 

It's just epochs now. nb_epoch was deprecated years ago.

 

nb_epoch 修改 为 epochs

标签:TypeError,fit,keyword,nb,epochs,epoch,unexpected,verbose
来源: https://www.cnblogs.com/emanlee/p/14428418.html