Monitor#
- class stable_ssl.monitors.Monitor[source]#
Bases:
object
Base class for metrics that are monitored at the end of each step.
Inheritors must implement a compute method, that calculates the metric, and a name attribute for logging.
- compute(trainer: BaseTrainer)[source]#
Abstract method that calculates a score given a model.