STATUS#

Classes#

class utils.status.ProgressBar(joint=False, verbose=True, update_every=1)[source]#

Bases: object

prog(current_epoch_iter, max_epoch_iter, epoch, task_number, loss)[source]#

Prints out the progress bar on the stderr file.

Parameters:
  • current_epoch_iter (int) – the current iteration of the epoch

  • max_epoch_iter (int) – the maximum number of iteration for the task. If None, the progress bar is not printed.

  • epoch (int | str) – the epoch

  • task_number (int) – the task index

  • loss (float) – the current value of the loss function

reset()[source]#

Resets the progress bar.

Functions#

utils.status.padded_print(string, max_width, **kwargs)[source]#

Prints a string with blank spaces to reach the max_width.

Parameters:
  • string (str) – the string to print

  • max_width (int) – the maximum width of the string

utils.status.progress_bar(i, max_iter, epoch, task_number, loss)[source]#

Prints out the progress bar on the stderr file.

Parameters:
  • i (int) – the current iteration

  • max_iter (int) – the maximum number of iteration

  • epoch (int | str) – the epoch

  • task_number (int) – the task index

  • loss (float) – the current value of the loss function