The if clause on the callback function looks like this:
if(logs.get(‘acc’)>0.7 and logs.get(‘val_acc’)>0.7):
print(“\nReached 99.8% accuracy so cancelling training!”)
self.model.stop_training = True
I don’t know which part is wrong, either the if condition that both accuracies have to be only above 70% or the printout statement, saying we reached 99.8%???
In my case, the training stopped already after 3 epochs.
Did anyone have had an issue with that before?
So the model passed the grader, so at least this is not an issue