oa::ml::CheckpointManagerConfig

Filesystem and metric policy for CheckpointManager.

StRust public API

Declaration

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, }
Public Rust declaration.

Public Methods

fn clone(&self) -> CheckpointManagerConfig
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Associated Functions

fn default() -> Self

Public Data Members

directoryPathBuffield
model_nameStringfield
contextStringfield
max_keepusizefield
save_bestboolfield
metric_nameStringfield
lower_is_betterboolfield

Public Method Documentation

fn clone( &self ) -> CheckpointManagerConfig
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.