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

posted @ 2021-02-22 09:25  emanlee  阅读(4699)  评论(0编辑  收藏  举报