Garfield.trainer.print_progress

Garfield.trainer.print_progress(epoch: int, logs: dict, n_epochs: int)[source]

Create message for ‘_print_progress_bar()’ and print it out with a progress bar.

Implementation is adapted from https://github.com/theislab/scarches/blob/master/scarches/trainers/trvae/_utils.py#L11 (01.10.2022).

Parameters:
  • epoch – Current epoch.

  • logs – Dictionary with all logs (losses & metrics).

  • n_epochs – Total number of epochs.