pub struct MiniBatchGMMBuilder { /* private fields */ }Expand description
Builder for Mini-Batch GMM
Implementations§
Source§impl MiniBatchGMMBuilder
impl MiniBatchGMMBuilder
Sourcepub fn n_components(self, n: usize) -> Self
pub fn n_components(self, n: usize) -> Self
Set number of components
Sourcepub fn batch_strategy(self, strategy: BatchStrategy) -> Self
pub fn batch_strategy(self, strategy: BatchStrategy) -> Self
Set batch strategy
Sourcepub fn covariance_type(self, cov_type: CovarianceType) -> Self
pub fn covariance_type(self, cov_type: CovarianceType) -> Self
Set covariance type
Sourcepub fn learning_rate(self, lr: f64) -> Self
pub fn learning_rate(self, lr: f64) -> Self
Set learning rate
Sourcepub fn build(self) -> MiniBatchGMM<Untrained>
pub fn build(self) -> MiniBatchGMM<Untrained>
Build the model
Trait Implementations§
Source§impl Clone for MiniBatchGMMBuilder
impl Clone for MiniBatchGMMBuilder
Source§fn clone(&self) -> MiniBatchGMMBuilder
fn clone(&self) -> MiniBatchGMMBuilder
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 MiniBatchGMMBuilder
impl Debug for MiniBatchGMMBuilder
Auto Trait Implementations§
impl Freeze for MiniBatchGMMBuilder
impl RefUnwindSafe for MiniBatchGMMBuilder
impl Send for MiniBatchGMMBuilder
impl Sync for MiniBatchGMMBuilder
impl Unpin for MiniBatchGMMBuilder
impl UnwindSafe for MiniBatchGMMBuilder
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