I am executing code to learn deep learning, I am new in this, I am executing code on Colab while executing the code
model.fit(X_train, y_train, batch_size=10, nb_epoch=100)
I got error
TypeError Traceback (most recent call last) in () ----> 1 model.fit(X_train, y_train, batch_size=10, nb_epoch=100) 2
TypeError: fit() got an unexpected keyword argument 'nb_epoch'
can anybody tell me why this error occured.
It's not very clear what library you are using but assuming you are using tf.keras the parameter is called epochs
not nb_epoch
: https://www.tensorflow.org/api_docs/python/tf/keras/Model#fit
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.