early_stop() is a helper function to be supplied on early_stopping arguments.
early_stop(
patience = 5L,
min_delta = 1e-04,
restore_best_weights = TRUE,
monitor = "val_loss"
)An object of class "early_stop_spec".
Integer. Epochs to wait after last improvement. Default 5.
Numeric. Minimum improvement to qualify as better. Default 1e-4.
Logical. Restore weights from best epoch. Default TRUE.
Character. Metric to monitor. One of "val_loss" (default) or "train_loss".