pub struct SplitConfig {
pub train_ratio: f64,
pub val_ratio: f64,
pub random_seed: u64,
pub strategy: SplitStrategy,
}Expand description
Configuration for data splitting.
Fields§
§train_ratio: f64Train split ratio.
val_ratio: f64Validation split ratio.
random_seed: u64Test split ratio (computed as 1 - train - val).
strategy: SplitStrategySplit strategy.
Trait Implementations§
Source§impl Clone for SplitConfig
impl Clone for SplitConfig
Source§fn clone(&self) -> SplitConfig
fn clone(&self) -> SplitConfig
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 moreSource§impl Debug for SplitConfig
impl Debug for SplitConfig
Auto Trait Implementations§
impl Freeze for SplitConfig
impl RefUnwindSafe for SplitConfig
impl Send for SplitConfig
impl Sync for SplitConfig
impl Unpin for SplitConfig
impl UnwindSafe for SplitConfig
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