utils.load_statistics

  1. utils.load_statistics(
  2. log_path,
  3. iteration_number=None,
  4. verbose=True
  5. )

Reads in a statistics object from log_path.

Args:

  • log_path: string, provides the full path to the training/eval
    statistics.
  • iteration_number: The iteration number of the statistics object we
    want to read. If set to None, load the latest version.
  • verbose: Whether to output information about the load procedure.

Returns:

  • data: The requested statistics object.
  • iteration: The corresponding iteration number.

Raises:

  • Exception: if data is not present.