Struct smartcore::model_selection::CrossValidationResult
source · pub struct CrossValidationResult {
pub test_score: Vec<f64>,
pub train_score: Vec<f64>,
}
Expand description
Cross validation results.
Fields§
§test_score: Vec<f64>
Vector with test scores on each cv split
train_score: Vec<f64>
Vector with training scores on each cv split
Implementations§
source§impl CrossValidationResult
impl CrossValidationResult
sourcepub fn mean_test_score(&self) -> f64
pub fn mean_test_score(&self) -> f64
Average test score
sourcepub fn mean_train_score(&self) -> f64
pub fn mean_train_score(&self) -> f64
Average training score
Trait Implementations§
source§impl Clone for CrossValidationResult
impl Clone for CrossValidationResult
source§fn clone(&self) -> CrossValidationResult
fn clone(&self) -> CrossValidationResult
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for CrossValidationResult
impl Send for CrossValidationResult
impl Sync for CrossValidationResult
impl Unpin for CrossValidationResult
impl UnwindSafe for CrossValidationResult
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