My model after training is getting overfit 1 and I want to use callbacks to stop the model when acc and val_acc are not too far apart. This is my model 2 and my callback 3 Can anyone help me to edit callbacks like that? Any help is greatly appreciated by me.