Skip to contents

Stop training after specified time.

Usage

early_stopping_time_cb(stop_time = NULL)

Arguments

stop_time

Time in seconds after which to stop training.

Value

A Keras callback that stops training after specified time.

Examples

if (FALSE) { # reticulate::py_module_available("tensorflow")
est <- early_stopping_time_cb(stop_time = 60)
}