callback = keras.callbacks.EarlyStopping(monitor=‘val_loss’,patience=50, restore_best_weights=True) @snowkylin