pub struct CrossValidator {
pub cv_folds: usize,
pub stratified: bool,
pub time_series_cv: bool,
pub leave_one_out: bool,
pub bootstrap: bool,
pub n_bootstrap: usize,
pub random_state: Option<u64>,
}Expand description
Cross-validation framework
Fields§
§cv_folds: usizeNumber of cross-validation folds
stratified: boolStratified cross-validation for classification
time_series_cv: boolTime series cross-validation
leave_one_out: boolLeave-one-out cross-validation
bootstrap: boolBootstrap validation
n_bootstrap: usizeNumber of bootstrap samples
random_state: Option<u64>Random state for reproducibility
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CrossValidator
impl RefUnwindSafe for CrossValidator
impl Send for CrossValidator
impl Sync for CrossValidator
impl Unpin for CrossValidator
impl UnwindSafe for CrossValidator
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> 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