pub struct Fold {
pub train: Vec<usize>,
pub test: Vec<usize>,
}Expand description
One cut: who trains and who is held out. Both sides in ascending order — shuffling decides who is in each fold, never the order they are listed in, so a fold reads the same whatever produced it.
Fields§
§train: Vec<usize>The indices to train on.
test: Vec<usize>The indices held out.
Trait Implementations§
impl Eq for Fold
impl StructuralPartialEq for Fold
Auto Trait Implementations§
impl Freeze for Fold
impl RefUnwindSafe for Fold
impl Send for Fold
impl Sync for Fold
impl Unpin for Fold
impl UnsafeUnpin for Fold
impl UnwindSafe for Fold
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