pub enum WarmupState {
NoData,
WarmingUp,
Usable,
Stable,
Degraded,
}Expand description
Lifecycle state of a model during warmup.
Variants§
NoData
No samples have been observed yet.
WarmingUp
Not enough samples have been seen to make any decision.
Usable
The model can be used but has not yet stabilized.
Stable
The model is stable and performing at least as well as the baseline.
Degraded
The recent error exceeds the baseline by too large a margin.
Implementations§
Source§impl WarmupState
impl WarmupState
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Returns a short, stable string identifier for the state.
Possible return values: "no_data", "warming_up", "usable",
"stable", "degraded".
Sourcepub fn is_ready(&self) -> bool
pub fn is_ready(&self) -> bool
Returns true when the model may be used for decisions.
Both WarmupState::Usable and WarmupState::Stable are considered ready.
Trait Implementations§
Source§impl Clone for WarmupState
impl Clone for WarmupState
Source§fn clone(&self) -> WarmupState
fn clone(&self) -> WarmupState
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 moreimpl Copy for WarmupState
Source§impl Debug for WarmupState
impl Debug for WarmupState
impl Eq for WarmupState
Source§impl PartialEq for WarmupState
impl PartialEq for WarmupState
impl StructuralPartialEq for WarmupState
Auto Trait Implementations§
impl Freeze for WarmupState
impl RefUnwindSafe for WarmupState
impl Send for WarmupState
impl Sync for WarmupState
impl Unpin for WarmupState
impl UnsafeUnpin for WarmupState
impl UnwindSafe for WarmupState
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