I am training a neural network with Keras using EarlyStopping
based on val_acc
and patience=0
. EarlyStopping
stops the tr
In Keras 2.2.3, a new argument called restore_best_weights
have been introduced for EarlyStopping callback that if set to True
(defaults to False
), it would restore the weights from the epoch with the best monitored quantity:
restore_best_weights: whether to restore model weights from the epoch with the best value of the monitored quantity. If
False
, the model weights obtained at the last step of training are used.