- class liesel.goose.epoch.EpochManager(configs)#
A sequence of
EpochConfigobjects can be handed to the manager either during initialization or later with the append method. The manager creates a new
EpochStateobject with properly initialized time values.
EpochManagerenforces this invariant:
An epoch must be of duration at least 1.
An initial values epoch must be of duration exactly 1.
The first epoch must be an initial values epoch.
No other than the first epoch may be an initial values epoch.
A posterior epoch may not be followed by a non-posterior epoch.
Temporary: Thinning must be 1.
The limitation that thinning must be 1 will probably be removed in the future. To do so, we need to figure out how kernels relying on history tuning can be tuned if the history is thinned.
EpochConfigto the list of epochs.
Trueif there are epoch configs that have not been returned yet by the
next()method, and false otherwise.
Returns the next epoch with an initialized state.