noether.core.callbacks.early_stoppers.base ========================================== .. py:module:: noether.core.callbacks.early_stoppers.base Exceptions ---------- .. autoapisummary:: noether.core.callbacks.early_stoppers.base.EarlyStopIteration Classes ------- .. autoapisummary:: noether.core.callbacks.early_stoppers.base.EarlyStopperBase Module Contents --------------- .. py:exception:: EarlyStopIteration Bases: :py:obj:`StopIteration` Custom StopIteration exception for Early Stoppers. Initialize self. See help(type(self)) for accurate signature. .. py:class:: EarlyStopperBase(callback_config, trainer, model, data_container, tracker, log_writer, checkpoint_writer, metric_property_provider, name = None) Bases: :py:obj:`noether.core.callbacks.periodic.PeriodicCallback` Base class for early stoppers that is used to define the interface for early stoppers used by the trainers. Initializes the `PeriodicCallback`. :param callback_config: Configuration of the `PeriodicCallback`. Implements the `CallBackBaseConfig` schema. :param trainer: Trainer of the current run, subclass of `SgdTrainer`. :param model: Model of the current run. :param data_container: DataContainer instance that provides access to all datasets. :param tracker: Tracker instance to log metrics to stdout/disk/online platform. :param log_writer: LogWriter instance to log metrics. :param checkpoint_writer: CheckpointWriter instance to save checkpoints. :param metric_property_provider: MetricPropertyProvider instance to access properties of metrics. :param name: Name of the callback. .. py:method:: to_short_interval_string() Convert the interval to a short string representation used for logging.