pub struct CheckpointManagerConfig {
pub directory: PathBuf,
pub model_name: String,
pub context: String,
pub max_keep: usize,
pub save_best: bool,
pub metric_name: String,
pub lower_is_better: bool,
}Fields§
§directory: PathBufRoot directory beneath which the model directory is created.
model_name: StringStable filename component and master checkpoint stem.
context: StringOptional incremental-checkpoint directory/filename component.
max_keep: usizeMaximum retained incremental checkpoints; zero disables rotation.
save_best: boolWhether an improved metric updates the master checkpoint.
metric_name: StringMetric name written into progress metadata and filenames.
lower_is_better: boolWhether a lower metric is considered better.
Implementations§
Trait Implementations§
Source§impl Clone for CheckpointManagerConfig
impl Clone for CheckpointManagerConfig
Source§impl Debug for CheckpointManagerConfig
impl Debug for CheckpointManagerConfig
Auto Trait Implementations§
impl Forget for CheckpointManagerConfig
impl Freeze for CheckpointManagerConfig
impl Move for CheckpointManagerConfig
impl RefUnwindSafe for CheckpointManagerConfig
impl Send for CheckpointManagerConfigwhere
RawVecInner: Send,
impl Sync for CheckpointManagerConfigwhere
RawVecInner: Sync,
impl Unpin for CheckpointManagerConfig
impl UnsafeUnpin for CheckpointManagerConfig
impl UnwindSafe for CheckpointManagerConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more