pub struct Mse { /* private fields */ }Expand description
Mean Squared Error.
Implementations§
Trait Implementations§
Source§impl Metric for Mse
impl Metric for Mse
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 Mse
impl RefUnwindSafe for Mse
impl Send for Mse
impl Sync for Mse
impl Unpin for Mse
impl UnsafeUnpin for Mse
impl UnwindSafe for Mse
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