class ProgressCallback

class deeptime.util.callbacks.ProgressCallback(progress, description=None, total=None)

Base callback function for the c++ bindings to indicate progress by incrementing a progress bar.

Parameters:
  • progress (object) – Tested for a tqdm progress bar. Should implement update(), set_description(), and close(). Should also possess a total constructor keyword argument.

  • total (int) – Number of iterations to completion.

  • description (string) – text to display in front of the progress bar.

Methods

set_description(value)

__call__(inc=1, *args, **kw)

Call self as a function.