pub struct FoldSet {
pub id: String,
pub sample_ids: Vec<SampleId>,
pub folds: Vec<FoldAssignment>,
pub sample_groups: BTreeMap<SampleId, GroupId>,
}Expand description
Exhaustive partition-style fold assignments.
Each sample in sample_ids must appear in validation exactly once across
the fold set. Repeated or hold-out splitter traces should be represented by
a separate contract, not by weakening this OOF partition invariant.
Fields§
§id: String§sample_ids: Vec<SampleId>§folds: Vec<FoldAssignment>§sample_groups: BTreeMap<SampleId, GroupId>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FoldSet
impl<'de> Deserialize<'de> for FoldSet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FoldSet
impl StructuralPartialEq for FoldSet
Auto Trait Implementations§
impl Freeze for FoldSet
impl RefUnwindSafe for FoldSet
impl Send for FoldSet
impl Sync for FoldSet
impl Unpin for FoldSet
impl UnsafeUnpin for FoldSet
impl UnwindSafe for FoldSet
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