pub struct EarlyStoppingRecord {
pub schema_version: u32,
pub node_id: NodeId,
pub phase: Phase,
pub fold_id: Option<FoldId>,
pub metric_role: MetricRoleReference,
pub best_iteration: u64,
pub observed_iterations: u64,
pub best_value: f64,
pub stopped_early: bool,
pub record_fingerprint: String,
}Expand description
Controller-reported early-stopping outcome, kept separate from persisted OOF/reporting scores and bound to one exact metric role and task scope.
Fields§
§schema_version: u32§node_id: NodeId§phase: Phase§fold_id: Option<FoldId>§metric_role: MetricRoleReference§best_iteration: u64Zero-based iteration at which best_value was observed.
observed_iterations: u64Number of completed iterations observed by the monitor.
best_value: f64§stopped_early: bool§record_fingerprint: StringImplementations§
Source§impl EarlyStoppingRecord
impl EarlyStoppingRecord
pub fn new( node_id: NodeId, phase: Phase, fold_id: Option<FoldId>, metric_role: MetricRoleReference, best_iteration: u64, observed_iterations: u64, best_value: f64, stopped_early: bool, ) -> Result<EarlyStoppingRecord, DagMlError>
pub fn from_json(json: &str) -> Result<EarlyStoppingRecord, DagMlError>
pub fn compute_fingerprint(&self) -> Result<String, DagMlError>
pub fn validate(&self) -> Result<(), DagMlError>
pub fn validate_against( &self, node_id: &NodeId, phase: Phase, fold_id: Option<&FoldId>, ) -> Result<(), DagMlError>
Trait Implementations§
Source§impl Clone for EarlyStoppingRecord
impl Clone for EarlyStoppingRecord
Source§fn clone(&self) -> EarlyStoppingRecord
fn clone(&self) -> EarlyStoppingRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EarlyStoppingRecord
impl Debug for EarlyStoppingRecord
Source§impl<'de> Deserialize<'de> for EarlyStoppingRecord
impl<'de> Deserialize<'de> for EarlyStoppingRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EarlyStoppingRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EarlyStoppingRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EarlyStoppingRecord
impl PartialEq for EarlyStoppingRecord
Source§impl Serialize for EarlyStoppingRecord
impl Serialize for EarlyStoppingRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EarlyStoppingRecord
Auto Trait Implementations§
impl Freeze for EarlyStoppingRecord
impl RefUnwindSafe for EarlyStoppingRecord
impl Send for EarlyStoppingRecord
impl Sync for EarlyStoppingRecord
impl Unpin for EarlyStoppingRecord
impl UnsafeUnpin for EarlyStoppingRecord
impl UnwindSafe for EarlyStoppingRecord
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