My question is simple, what validation data is passed to model.fit in the serial model used for ?
And does this affect how the model is trained (usually a validation set is used, for example, to select hyperparameters in the model, but I think this does not happen here)?
I am talking about a test suite that can be conveyed as follows:
model = Sequential()
model.add(...)
history = model.fit(X_train, Y_train, validation_split=0.1)
history = model.fit(X_train, Y_train, validation_data=(X_test, Y_test))
I did a little research, and I saw what keras.models.Sequential.fit
calls keras.models.training.fit
, which creates type variables val_acc
and val_loss
(which can be accessed from Callbacks). keras.models.training.fit
also calls keras.models.training._fit_loop
, which adds validation data to callbacks.validation_data
, and also calls keras.models.training._test_loop
, which will loop the validation data into packets in the self.test_function
model. The result of this function is used to populate log values that are values available from callbacks.
, , model.fit
- , , , . , okey , ?
- , , model.fit, - ?