Struct smartcore::metrics::mean_absolute_error::MeanAbsoluteError
source · pub struct MeanAbsoluteError<T> { /* private fields */ }Expand description
Mean Absolute Error
Trait Implementations
sourceimpl<T: Debug> Debug for MeanAbsoluteError<T>
impl<T: Debug> Debug for MeanAbsoluteError<T>
sourceimpl<T: Number + FloatNumber> Metrics<T> for MeanAbsoluteError<T>
impl<T: Number + FloatNumber> Metrics<T> for MeanAbsoluteError<T>
sourcefn get_score(&self, y_true: &dyn ArrayView1<T>, y_pred: &dyn ArrayView1<T>) -> f64
fn get_score(&self, y_true: &dyn ArrayView1<T>, y_pred: &dyn ArrayView1<T>) -> f64
Computes mean absolute error
y_true- Ground truth (correct) target values.y_pred- Estimated target values.
Auto Trait Implementations
impl<T> RefUnwindSafe for MeanAbsoluteError<T>where
T: RefUnwindSafe,
impl<T> Send for MeanAbsoluteError<T>where
T: Send,
impl<T> Sync for MeanAbsoluteError<T>where
T: Sync,
impl<T> Unpin for MeanAbsoluteError<T>where
T: Unpin,
impl<T> UnwindSafe for MeanAbsoluteError<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more