pub struct StratifiedGrouped {
pub k: usize,
}Expand description
The two constraints at once, which is where they stop composing cleanly:
with the groups kept whole, exact strata are usually not reachable at
all. So this is greedy and approximate, and says so — sklearn’s
StratifiedGroupKFold is greedy for the same reason, because the exact
problem is a bin packing.
Fields§
§k: usizeHow many folds.
Implementations§
Trait Implementations§
Source§impl Clone for StratifiedGrouped
impl Clone for StratifiedGrouped
Source§fn clone(&self) -> StratifiedGrouped
fn clone(&self) -> StratifiedGrouped
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 StratifiedGrouped
impl Debug for StratifiedGrouped
Source§impl Display for StratifiedGrouped
impl Display for StratifiedGrouped
Source§impl From<StratifiedGrouped> for Partition
impl From<StratifiedGrouped> for Partition
Source§fn from(cut: StratifiedGrouped) -> Self
fn from(cut: StratifiedGrouped) -> Self
Converts to this type from the input type.
Source§impl Hash for StratifiedGrouped
impl Hash for StratifiedGrouped
Source§impl PartialEq for StratifiedGrouped
impl PartialEq for StratifiedGrouped
impl Eq for StratifiedGrouped
impl StructuralPartialEq for StratifiedGrouped
Auto Trait Implementations§
impl Freeze for StratifiedGrouped
impl RefUnwindSafe for StratifiedGrouped
impl Send for StratifiedGrouped
impl Sync for StratifiedGrouped
impl Unpin for StratifiedGrouped
impl UnsafeUnpin for StratifiedGrouped
impl UnwindSafe for StratifiedGrouped
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