i have a problem with the appropriate parameters to get the training history, it doesn’t work. What should i do? could anybody help me?
the code is -->> hist = train_mnist(x_train, y_train)
i have a problem with the appropriate parameters to get the training history, it doesn’t work. What should i do? could anybody help me?
the code is -->> hist = train_mnist(x_train, y_train)
Please ensure that your callback subclasses tf.keras.callbacks.Callback
where should the code be placed ?
Did you read the link I gave you?
It has an example as well.
model.fit returns an instance of keras.callbacks.History. You should return this from train_mnist.
history = model.fit(x_train, y_train, epochs=10, callbacks=[callbacks])
isn’t the code right or no, sir?
That is correct. After that, return history.
Please get familiar with python before moving foward.
i passed it, finally i got 100
thank you for your suggestion ![]()
Thank you, I was having a similar issue.