ttslearn.train_util.get_epochs_with_optional_tqdm

ttslearn.train_util.get_epochs_with_optional_tqdm(tqdm_mode, nepochs)[source]

Get epochs with optional progress bar.

Parameters
  • tqdm_mode (str) – Progress bar mode.

  • nepochs (int) – Number of epochs.

Returns

Epochs.

Return type

iterable