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