TypeError: set_model() missing 1 required positional argument: 'model'

I got this Type Error.
I used this sentence to instantiate callback.
callbacks = tf.keras.callbacks.Callback
Here below is my full sentences. Can you please~ help? Thanks!

Hello @Anthony_Lee
Welcome to the community. And for you to use the Callbacks API, you first need to create a callbacks class then you can instantiate the callback object in the function.

I see that you didn’t do both you can go through the course videos again or follow this Writing your own callbacks guide from Tensorflow documentation.


Hi @Hirwa
I have read the guide. I edited my assignment to create a callbacks class. However, I still get the same error message.

Can you please help looking at my revised notebook file? I would appreciate your comments or sending me the correctly written file without an error.


Any help regarding this error would be most helpful:
set_model() missing 1 required positional argument: ‘model’

I have written the following

[code removed - moderator]

Please see this

Balaji, thank you for your dedicated followup.
I reset the worksheet again and restarted …Now I have the output BUT the accuracy does not increase and the training is NOT stopped…I will created another post for this problem