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 Freeze for CrossValidationResult
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