pub struct ComparatorEntry { /* private fields */ }Expand description
A single tracked model entry inside a BaselineComparator.
Stores the entry’s name, a rolling MAE over a fixed window, and the total number of samples recorded against it.
Implementations§
Source§impl ComparatorEntry
impl ComparatorEntry
Sourcepub fn rolling_mae(&self) -> Option<f64>
pub fn rolling_mae(&self) -> Option<f64>
Current rolling MAE value, or None if no observations have been recorded.
Sourcepub const fn total_samples(&self) -> u64
pub const fn total_samples(&self) -> u64
Total number of observations recorded against this entry.
Trait Implementations§
Source§impl Clone for ComparatorEntry
impl Clone for ComparatorEntry
Source§fn clone(&self) -> ComparatorEntry
fn clone(&self) -> ComparatorEntry
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 moreAuto Trait Implementations§
impl Freeze for ComparatorEntry
impl RefUnwindSafe for ComparatorEntry
impl Send for ComparatorEntry
impl Sync for ComparatorEntry
impl Unpin for ComparatorEntry
impl UnsafeUnpin for ComparatorEntry
impl UnwindSafe for ComparatorEntry
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