noether.core.callbacks.early_stoppers.fixed

Classes

FixedEarlyStopperConfig

FixedEarlyStopper

Early stopper (training) based on a fixed number of epochs, updates, or samples.

Module Contents

class noether.core.callbacks.early_stoppers.fixed.FixedEarlyStopperConfig(/, **data)

Bases: pydantic.BaseModel

Parameters:

data (Any)

kind: str | None = None
name: Literal['FixedEarlyStopper'] = None
stop_at_sample: int | None = None
stop_at_update: int | None = None
stop_at_epoch: int | None = None
validate_callback_frequency()

Ensures that exactly one stop (‘stop_at_*’) is specified

Return type:

FixedEarlyStopperConfig

class noether.core.callbacks.early_stoppers.fixed.FixedEarlyStopper(callback_config, **kwargs)

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

Early stopper (training) based on a fixed number of epochs, updates, or samples.

Example config:

- kind: noether.core.callbacks.FixedEarlyStopper
  stop_at_epoch: 10
  name: FixedEarlyStopper
Parameters:
  • callback_config (FixedEarlyStopperConfig) – The configuration for the callback. See FixedEarlyStopperConfig for available options.

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

stop_at_sample
stop_at_update
stop_at_epoch