成功解决TypeError: fit() got an unexpected keyword argument ‘np_epoch‘

把原代码:history=model.fit(X_train, y_train, np_epoch = epoch, batch_size = 256,shuffle=False,validation_data=(X_test, y_test))

改为:history=model.fit(X_train, y_train, epochs = epoch, batch_size = 256,shuffle=False,validation_data=(X_test, y_test))

你可能感兴趣的:(python,人工智能)