pub struct ClassifierConfig { /* private fields */ }Expand description
Fluent configuration builder for DummyClassifier
Implementations§
Source§impl ClassifierConfig
impl ClassifierConfig
Sourcepub fn strategy(self, strategy: ClassifierStrategy) -> Self
pub fn strategy(self, strategy: ClassifierStrategy) -> Self
Set the prediction strategy
Sourcepub fn random_state(self, seed: u64) -> Self
pub fn random_state(self, seed: u64) -> Self
Set random state for reproducible results
Sourcepub fn bayesian_prior(self, alpha: Array1<Float>) -> Self
pub fn bayesian_prior(self, alpha: Array1<Float>) -> Self
Set Bayesian prior parameters
Sourcepub fn with_description<S: Into<String>>(self, description: S) -> Self
pub fn with_description<S: Into<String>>(self, description: S) -> Self
Add description for documentation
Sourcepub fn reproducible(self) -> Self
pub fn reproducible(self) -> Self
Enable reproducible mode with fixed seed
Sourcepub fn balanced_mode(self) -> Self
pub fn balanced_mode(self) -> Self
Configure for balanced predictions
Sourcepub fn uncertainty_mode(self) -> Self
pub fn uncertainty_mode(self) -> Self
Configure for uncertainty quantification
Sourcepub fn build(self) -> DummyClassifier
pub fn build(self) -> DummyClassifier
Build the configured DummyClassifier
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Get the configuration description
Trait Implementations§
Source§impl Clone for ClassifierConfig
impl Clone for ClassifierConfig
Source§fn clone(&self) -> ClassifierConfig
fn clone(&self) -> ClassifierConfig
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 ClassifierConfig
impl Debug for ClassifierConfig
Auto Trait Implementations§
impl Freeze for ClassifierConfig
impl RefUnwindSafe for ClassifierConfig
impl Send for ClassifierConfig
impl Sync for ClassifierConfig
impl Unpin for ClassifierConfig
impl UnwindSafe for ClassifierConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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