status#

Classes

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

Bases: object

prog(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. 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

Functions

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