- Hi All, with Ari here, May I have some help, I have error message in training history has incorrect type. Expected: <class ‘keras.src.callbacks.history.History’>. Got: <class ‘keras.src.models.sequential.Sequential’>
Hi @gurochan,
Please keep in mind that you cannot share your code here. Instead, share your error message or send your code to mentors via private messages (only if they ask you to)!
You’re returning model
before training it, so train_mnist
is returning a Sequential
model instead of a History
object. Try removing the return model
line and return history
instead.
Hope this helps! Feel free to ask if you need further assistance.
Hi Alireza, Thank U for the solution, now its already passed. Ok well noted for the advice. Thanks
You’re welcome, happy to help