nemos.callbacks.StochasticFitSummary#
- class nemos.callbacks.StochasticFitSummary(pass_idx=None, batch_idx=None, n_passes=0, should_stop=False, stop_reason='')[source]#
Bases:
objectPost-fit summary of a stochastic training run.
Stored on fitted models as
stochastic_fit_summary_afterstochastic_fitcompletes. This summary is runtime state and is not serialized bysave_params().In machine-learning terminology, a pass over the data is what is usually called an epoch; NeMoS says “pass” to avoid clashing with pynapple’s recording epochs.
- Parameters:
pass_idx (
int|None) – Final pass index reached by the training loop.batch_idx (
int|None) – Final batch index reached within the last pass.n_passes (
int) – Total number of passes requested for the run.should_stop (
bool) – Whether a callback requested early stopping.stop_reason (
str) – Human-readable stop reason, if any.
Attributes
- __init__(pass_idx=None, batch_idx=None, n_passes=0, should_stop=False, stop_reason='')#
Methods
__init__([pass_idx, batch_idx, n_passes, ...])