ksuit.callbacks.early_stoppers.early_stopper_base ================================================= .. py:module:: ksuit.callbacks.early_stoppers.early_stopper_base Exceptions ---------- .. autoapisummary:: ksuit.callbacks.early_stoppers.early_stopper_base.EarlyStopIteration Classes ------- .. autoapisummary:: ksuit.callbacks.early_stoppers.early_stopper_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:`ksuit.callbacks.base.PeriodicCallback` Base class for early stoppers that is used to define the interface for early stoppers used by ksuit 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.