pub struct ClassBuckets { /* private fields */ }Expand description
Per-class training-id pools, sorted and post-exclusion.
Implementations§
Source§impl ClassBuckets
impl ClassBuckets
Sourcepub fn from_prepared(dataset: &PreparedDataset<Canonical>) -> Self
pub fn from_prepared(dataset: &PreparedDataset<Canonical>) -> Self
Build the buckets of a canonical dataset’s training split, minus its exclusions.
Only PreparedDataset<Canonical> has buckets to build: a compatibility dataset is
a different type and cannot be passed (D-19).
Sourcepub fn class_sizes(&self) -> Vec<(usize, u64)>
pub fn class_sizes(&self) -> Vec<(usize, u64)>
(label, pool_size) for every declared class, ascending by label.
Trait Implementations§
Source§impl Clone for ClassBuckets
impl Clone for ClassBuckets
Source§impl Debug for ClassBuckets
impl Debug for ClassBuckets
impl Eq for ClassBuckets
Source§impl PartialEq for ClassBuckets
impl PartialEq for ClassBuckets
impl StructuralPartialEq for ClassBuckets
Auto Trait Implementations§
impl Freeze for ClassBuckets
impl RefUnwindSafe for ClassBuckets
impl Send for ClassBuckets
impl Sync for ClassBuckets
impl Unpin for ClassBuckets
impl UnsafeUnpin for ClassBuckets
impl UnwindSafe for ClassBuckets
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