pub struct RollingMse { /* private fields */ }Expand description
Rolling Mean Squared Error.
Implementations§
Trait Implementations§
Source§impl Clone for RollingMse
impl Clone for RollingMse
Source§fn clone(&self) -> RollingMse
fn clone(&self) -> RollingMse
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 RollingMse
impl Debug for RollingMse
Source§impl Metric for RollingMse
impl Metric for RollingMse
Source§type Prediction = f64
type Prediction = f64
The prediction type for this metric.
Source§fn update(&mut self, truth: f64, prediction: f64) -> Result<(), RillError>
fn update(&mut self, truth: f64, prediction: f64) -> Result<(), RillError>
Incorporate a single observation.
Source§fn value(&self) -> Option<f64>
fn value(&self) -> Option<f64>
Current metric value, or
None if not enough data has been seen.Source§fn samples_seen(&self) -> u64
fn samples_seen(&self) -> u64
How many observations have been incorporated.
Auto Trait Implementations§
impl Freeze for RollingMse
impl RefUnwindSafe for RollingMse
impl Send for RollingMse
impl Sync for RollingMse
impl Unpin for RollingMse
impl UnsafeUnpin for RollingMse
impl UnwindSafe for RollingMse
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