In model training, we call model.fit, where in the following steps are executed:
Data validation:
When passing validation_data to the Keras model, it must contain two parameters (x_val, y_val) or three parameters (x_val, y_val, and val_sample_weights).