pub struct PredictionErrors {
pub n: usize,
pub mean_error: f64,
pub mean_absolute_error: f64,
pub rmse: f64,
pub cv_rmse: Option<f64>,
pub nmbe: Option<f64>,
pub parameters: usize,
}Expand description
Error measures of predictions against observations.
Fields§
§n: usizeNumber of observations n.
mean_error: f64Mean error (bias), Σeᵢ / n.
mean_absolute_error: f64Mean absolute error, Σ|eᵢ| / n.
rmse: f64Root mean squared error, √(Σeᵢ² / (n − p)).
cv_rmse: Option<f64>Coefficient of variation of the RMSE, rmse / ȳ with ȳ the mean of
the observations; None when ȳ is 0. A fraction (× 100 for percent).
nmbe: Option<f64>Normalized mean bias error, Σeᵢ / ((n − p) · ȳ); None when ȳ is 0.
A fraction (× 100 for percent); positive when the predictions are low.
parameters: usizeThe p the RMSE and NMBE denominators subtract.
Trait Implementations§
Source§impl Clone for PredictionErrors
impl Clone for PredictionErrors
impl Copy for PredictionErrors
Source§impl Debug for PredictionErrors
impl Debug for PredictionErrors
Source§impl PartialEq for PredictionErrors
impl PartialEq for PredictionErrors
impl StructuralPartialEq for PredictionErrors
Auto Trait Implementations§
impl Freeze for PredictionErrors
impl RefUnwindSafe for PredictionErrors
impl Send for PredictionErrors
impl Sync for PredictionErrors
impl Unpin for PredictionErrors
impl UnsafeUnpin for PredictionErrors
impl UnwindSafe for PredictionErrors
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