mythos.ui.loggers.logger
Base logger protocol.
Attributes
Classes
Status of a simulator, objective, or observable. |
|
Kind of status for a simulator, objective, or observable. |
|
Base Logger abstract class. |
|
A logger that does nothing. |
Module Contents
- mythos.ui.loggers.logger.MISSING_LOGDIR_WANING = '`log_dir` not results might not be saved to disk.'
- class mythos.ui.loggers.logger.Status(*args, **kwds)[source]
Bases:
enum.EnumStatus of a simulator, objective, or observable.
- STARTED = 0
- RUNNING = 1
- COMPLETE = 2
- ERROR = 3
- class mythos.ui.loggers.logger.StatusKind(*args, **kwds)[source]
Bases:
enum.EnumKind of status for a simulator, objective, or observable.
- SIMULATOR = 0
- OBJECTIVE = 1
- OBSERVABLE = 2
- class mythos.ui.loggers.logger.Logger[source]
Bases:
abc.ABCBase Logger abstract class.
- abstractmethod log_metric(name: str, value: float, step: int) None[source]
Log the value for name at step.
- abstractmethod update_status(name: str, kind: StatusKind, status: Status) None[source]
Updates the status of a simulator, objective, or observable.
- update_objective_status(name: str, status: Status) None[source]
Updates the status of an objective.