Struct linfa_clustering::GmmValidParams
source · [−]Expand description
The set of hyperparameters that can be specified for the execution of the GMM algorithm.
Implementations
sourceimpl<F: Float, R: Rng + Clone> GmmValidParams<F, R>
impl<F: Float, R: Rng + Clone> GmmValidParams<F, R>
pub fn n_clusters(&self) -> usize
pub fn covariance_type(&self) -> &GmmCovarType
pub fn tolerance(&self) -> F
pub fn reg_covariance(&self) -> F
pub fn n_runs(&self) -> u64
pub fn max_n_iterations(&self) -> u64
pub fn init_method(&self) -> &GmmInitMethod
pub fn rng(&self) -> R
Trait Implementations
sourceimpl<F: Clone + Float, R: Clone + Rng> Clone for GmmValidParams<F, R>
impl<F: Clone + Float, R: Clone + Rng> Clone for GmmValidParams<F, R>
sourcefn clone(&self) -> GmmValidParams<F, R>
fn clone(&self) -> GmmValidParams<F, R>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<F: Float, R: Rng + Clone, D: Data<Elem = F>, T> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, GmmError> for GmmValidParams<F, R>
impl<F: Float, R: Rng + Clone, D: Data<Elem = F>, T> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, GmmError> for GmmValidParams<F, R>
type Object = GaussianMixtureModel<F>
fn fit(
&self,
dataset: &DatasetBase<ArrayBase<D, Ix2>, T>
) -> Result<Self::Object, GmmError>
sourceimpl<F: PartialEq + Float, R: PartialEq + Rng> PartialEq<GmmValidParams<F, R>> for GmmValidParams<F, R>
impl<F: PartialEq + Float, R: PartialEq + Rng> PartialEq<GmmValidParams<F, R>> for GmmValidParams<F, R>
sourcefn eq(&self, other: &GmmValidParams<F, R>) -> bool
fn eq(&self, other: &GmmValidParams<F, R>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GmmValidParams<F, R>) -> bool
fn ne(&self, other: &GmmValidParams<F, R>) -> bool
This method tests for !=
.
impl<F: Float, R: Rng> StructuralPartialEq for GmmValidParams<F, R>
Auto Trait Implementations
impl<F, R> RefUnwindSafe for GmmValidParams<F, R> where
F: RefUnwindSafe,
R: RefUnwindSafe,
impl<F, R> Send for GmmValidParams<F, R> where
R: Send,
impl<F, R> Sync for GmmValidParams<F, R> where
R: Sync,
impl<F, R> Unpin for GmmValidParams<F, R> where
R: Unpin,
impl<F, R> UnwindSafe for GmmValidParams<F, R> where
F: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more