Expand description
Prelude for checkpoint module
Structs§
- Checkpoint
- Complete evolution state for checkpointing
- Checkpoint
Builder - Builder for creating checkpoints
- Checkpoint
Manager - Checkpoint manager for automatic saving
- CmaEs
Checkpoint State - CMA-ES checkpoint state
- Hyperparameter
State - Hyperparameter learning state
Enums§
- Algorithm
State - Algorithm-specific state variants
- Checkpoint
Format - Format for checkpoint serialization
Constants§
- CHECKPOINT_
VERSION - Current checkpoint format version
- DEFAULT_
MAX_ CHECKPOINT_ BYTES - Default cap on the size (in bytes) of a checkpoint file that
load_checkpointwill deserialize (EV-48). Files larger than this, and individual length-prefixed fields larger than this, are rejected with a typed error rather than triggering an unbounded allocation. - MIN_
SUPPORTED_ CHECKPOINT_ VERSION - Oldest checkpoint schema version this build can still load (EV-45).
Traits§
- Snapshot
Rng - An RNG whose complete internal state can be captured to bytes and restored, enabling bit-identical checkpoint resume.
Functions§
- load_
checkpoint - Load a checkpoint from a file using the default size limit
(
DEFAULT_MAX_CHECKPOINT_BYTES). - load_
checkpoint_ with_ limit - Load a checkpoint from a file, rejecting inputs larger than
max_bytes. - save_
checkpoint - Save a checkpoint to a file