pub struct FoldInfo {
pub current_fold: usize,
pub total_folds: usize,
pub train_size: usize,
pub test_size: usize,
pub class_distribution: Option<Vec<(String, usize)>>,
}Expand description
Cross-validation fold information
Fields§
§current_fold: usize§total_folds: usize§train_size: usize§test_size: usize§class_distribution: Option<Vec<(String, usize)>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for FoldInfo
impl RefUnwindSafe for FoldInfo
impl Send for FoldInfo
impl Sync for FoldInfo
impl Unpin for FoldInfo
impl UnwindSafe for FoldInfo
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