pub struct RandomLabelCombinations { /* private fields */ }Expand description
Random Label Combinations Method
Generates random label combinations for evaluation and testing purposes. Useful for creating synthetic multi-label datasets with controlled characteristics.
Implementations§
Source§impl RandomLabelCombinations
impl RandomLabelCombinations
Sourcepub fn n_combinations(self, n_combinations: usize) -> Self
pub fn n_combinations(self, n_combinations: usize) -> Self
Set the number of combinations to generate
Sourcepub fn label_density(self, density: Float) -> Self
pub fn label_density(self, density: Float) -> Self
Set the label density (proportion of positive labels)
Sourcepub fn random_state(self, seed: u64) -> Self
pub fn random_state(self, seed: u64) -> Self
Set random state for reproducible results
Auto Trait Implementations§
impl Freeze for RandomLabelCombinations
impl RefUnwindSafe for RandomLabelCombinations
impl Send for RandomLabelCombinations
impl Sync for RandomLabelCombinations
impl Unpin for RandomLabelCombinations
impl UnwindSafe for RandomLabelCombinations
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more