I am getting this error. How can I solve this? Should I define the set_model() function in myCallback? Where is the ‘model’ supposed to be defined?

Hi @Ten_sorFlow
Please send your codes by personal DM. Click on my name and then message.
Regards
DP
Hello @Ten_sorFlow
Two errors in your assignment
In the GRADED CLASS: myCallback
def on_epoch_end(self, epoch, logs=HERE YOU CODE IS INCORRECT):
Notice the second code line mentions if logs is not None, so the previous code line needs mention logs as if it is None right?? so what would be logs=??
In the GRADED CLASS: train_mnist
for the code line
Instantiate the callback class, you need to recall the callbacks with MyCallback()
Let me know if the issue got resolved.
Regards
DP
Hi @Deepti_Prasad
Thank you so much for your help!