Learn R Programming

tfaddons (version 0.10.0)

callback_time_stopping: Time Stopping

Description

Time Stopping

Usage

callback_time_stopping(seconds = 86400, verbose = 0)

Arguments

seconds

maximum amount of time before stopping. Defaults to 86400 (1 day).

verbose

verbosity mode. Defaults to 0.

Value

None

Details

Stop training when a specified amount of time has passed.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
model %>% fit(
x_train, y_train,
batch_size = 128,
epochs = 4,
validation_split = 0.2,
verbose = 0,
callbacks = callback_time_stopping(seconds = 6, verbose = 1)
)
# }
# NOT RUN {


# }

Run the code above in your browser using DataLab