callback_tqdm_progress_bar: TQDM Progress Bar

Description Usage Arguments Details Value Examples

View source: R/callbacks.R

Description

TQDM Progress Bar

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
callback_tqdm_progress_bar(
  metrics_separator = " - ",
  overall_bar_format = NULL,
  epoch_bar_format = "{n_fmt}/{total_fmt}{bar} ETA: {remaining}s - {desc}",
  update_per_second = 10,
  leave_epoch_progress = TRUE,
  leave_overall_progress = TRUE,
  show_epoch_progress = TRUE,
  show_overall_progress = TRUE
)

Arguments

metrics_separator

(string) Custom separator between metrics. Defaults to ' - '

overall_bar_format

(string format) Custom bar format for overall (outer) progress bar, see https://github.com/tqdm/tqdm#parameters for more detail. By default: 'l_barbar n_fmt/total_fmt ETA: remainings, rate_fmtpostfix'

epoch_bar_format

(string format) Custom bar format for epoch (inner) progress bar, see https://github.com/tqdm/tqdm#parameters for more detail.

update_per_second

(int) Maximum number of updates in the epochs bar per second, this is to prevent small batches from slowing down training. Defaults to 10.

leave_epoch_progress

(bool) TRUE to leave epoch progress bars

leave_overall_progress

(bool) TRUE to leave overall progress bar

show_epoch_progress

(bool) FALSE to hide epoch progress bars

show_overall_progress

(bool) FALSE to hide overall progress bar

Details

TQDM Progress Bar for Tensorflow Keras.

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_tqdm_progress_bar()
)

## End(Not run)

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