noether.core.callbacks.early_stoppers.metric

Classes

MetricEarlyStopper

Early stopper (training) based on a metric value to be monitored.

Module Contents

class noether.core.callbacks.early_stoppers.metric.MetricEarlyStopper(callback_config, **kwargs)

Bases: noether.core.callbacks.early_stoppers.base.EarlyStopperBase

Early stopper (training) based on a metric value to be monitored.

Initialize the early stopper.

Parameters:
  • metric_key – The key of the metric to monitor.

  • tolerance – The number of times the metric can stagnate before stopping training.

  • metric_property_provider – The metric property provider to use.

  • **kwargs – Additional arguments to pass to the parent class.

  • callback_config (noether.core.schemas.callbacks.MetricEarlyStopperConfig)

metric_key
higher_is_better
tolerance
tolerance_counter = 0
best_metric