pub struct CrossValidationResults {
pub fold_scores: Vec<f64>,
pub fold_metrics: Vec<HashMap<String, f64>>,
}Expand description
Cross-validation result aggregator.
Fields§
§fold_scores: Vec<f64>Scores for each fold.
fold_metrics: Vec<HashMap<String, f64>>Additional metrics for each fold.
Implementations§
Source§impl CrossValidationResults
impl CrossValidationResults
Sourcepub fn mean_score(&self) -> f64
pub fn mean_score(&self) -> f64
Get mean score across all folds.
Sourcepub fn mean_metric(&self, metric_name: &str) -> Option<f64>
pub fn mean_metric(&self, metric_name: &str) -> Option<f64>
Get mean of a specific metric across all folds.
Trait Implementations§
Source§impl Clone for CrossValidationResults
impl Clone for CrossValidationResults
Source§fn clone(&self) -> CrossValidationResults
fn clone(&self) -> CrossValidationResults
Returns a duplicate of the value. Read more
1.0.0 · 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 CrossValidationResults
impl Debug for CrossValidationResults
Auto Trait Implementations§
impl Freeze for CrossValidationResults
impl RefUnwindSafe for CrossValidationResults
impl Send for CrossValidationResults
impl Sync for CrossValidationResults
impl Unpin for CrossValidationResults
impl UnwindSafe for CrossValidationResults
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more