callback_time_stopping: Time Stopping

Description Usage Arguments Details Value Examples

View source: R/callbacks.R

Description

Time Stopping

Usage

1
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.

Details

Stop training when a specified amount of time has passed.

Value

None

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)
)

## End(Not run)

tfaddons documentation built on July 2, 2020, 2:12 a.m.