pub enum SplitSpec {
Full,
Sequential {
train: f64,
val: f64,
test: f64,
},
Hashed {
seed: u64,
train: f64,
val: f64,
test: f64,
},
}Variants§
Full
Single full-dataset partition. Split::Train, Split::Val, and
Split::Test all yield empty row vectors; only Split::Full
returns rows.
Sequential
Sequential ranges by ascending row index. Train gets the first
floor(nrows * train), val the next floor(nrows * val), test
the next floor(nrows * test). Trailing rows are excluded.
Hashed
Per-row deterministic hash assignment. Bucket =
splitmix64(row as u64 ^ seed) >> 32 divided by 2^32. Same
seed ⇒ identical assignment, regardless of nrows.
Trait Implementations§
impl StructuralPartialEq for SplitSpec
Auto Trait Implementations§
impl Freeze for SplitSpec
impl RefUnwindSafe for SplitSpec
impl Send for SplitSpec
impl Sync for SplitSpec
impl Unpin for SplitSpec
impl UnsafeUnpin for SplitSpec
impl UnwindSafe for SplitSpec
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