Stochastic optimization#
Tools for fitting models on batched data via stochastic_fit.
Data loaders#
Helper classes loading data for stochastic optimization.
Protocol for data loaders that stream batches. |
|
DataLoader for in-memory arrays. |
|
DataLoader for lazy/out-of-core arrays (e.g. dask, zarr, HDF5). |
Callbacks#
Callback interfaces for stochastic optimization and post-fit run summaries.
Base class for training callbacks. |
|
Composite callback that dispatches each hook to all registered callbacks. |
|
Delegate convergence checking to the solver's built-in criterion. |
|
Log the loss evaluated on a fixed test set at the requested events. |
|
Mutable context object passed to callbacks during training. |
|
Post-fit summary of a stochastic training run. |