pub struct L1RegularizedGMMBuilder { /* private fields */ }Expand description
Builder for L1 Regularized GMM
Implementations§
Source§impl L1RegularizedGMMBuilder
impl L1RegularizedGMMBuilder
Sourcepub fn n_components(self, n_components: usize) -> Self
pub fn n_components(self, n_components: usize) -> Self
Set number of components
Sourcepub fn covariance_type(self, covariance_type: CovarianceType) -> Self
pub fn covariance_type(self, covariance_type: CovarianceType) -> Self
Set covariance type
Sourcepub fn random_state(self, random_state: u64) -> Self
pub fn random_state(self, random_state: u64) -> Self
Set random state
Sourcepub fn build(self) -> L1RegularizedGMM<Untrained>
pub fn build(self) -> L1RegularizedGMM<Untrained>
Build the model
Trait Implementations§
Source§impl Clone for L1RegularizedGMMBuilder
impl Clone for L1RegularizedGMMBuilder
Source§fn clone(&self) -> L1RegularizedGMMBuilder
fn clone(&self) -> L1RegularizedGMMBuilder
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 L1RegularizedGMMBuilder
impl Debug for L1RegularizedGMMBuilder
Auto Trait Implementations§
impl Freeze for L1RegularizedGMMBuilder
impl RefUnwindSafe for L1RegularizedGMMBuilder
impl Send for L1RegularizedGMMBuilder
impl Sync for L1RegularizedGMMBuilder
impl Unpin for L1RegularizedGMMBuilder
impl UnwindSafe for L1RegularizedGMMBuilder
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