pub enum SplitStrategy {
Random,
Temporal {
train_cutoff: NaiveDate,
val_cutoff: NaiveDate,
},
Stratified,
KFold {
k: usize,
fold: usize,
},
Transductive,
}Expand description
Strategy for splitting data.
Variants§
Random
Random split.
Temporal
Temporal split (by timestamp).
Stratified
Stratified split (maintain class distribution).
KFold
K-fold cross validation.
Transductive
Transductive split (nodes appear in all splits, but different edges).
Trait Implementations§
Source§impl Clone for SplitStrategy
impl Clone for SplitStrategy
Source§fn clone(&self) -> SplitStrategy
fn clone(&self) -> SplitStrategy
Returns a duplicate 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 SplitStrategy
impl RefUnwindSafe for SplitStrategy
impl Send for SplitStrategy
impl Sync for SplitStrategy
impl Unpin for SplitStrategy
impl UnwindSafe for SplitStrategy
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