[][src]Struct linfa_clustering::GmmHyperParams

pub struct GmmHyperParams<F: Float, R: Rng> { /* fields omitted */ }

The set of hyperparameters that can be specified for the execution of the GMM algorithm.

Implementations

impl<F: Float> GmmHyperParams<F, Isaac64Rng>[src]

pub fn new(n_clusters: usize) -> GmmHyperParams<F, Isaac64Rng>[src]

impl<F: Float, R: Rng + Clone> GmmHyperParams<F, R>[src]

pub fn n_clusters(&self) -> usize[src]

pub fn covariance_type(&self) -> &GmmCovarType[src]

pub fn tolerance(&self) -> F[src]

pub fn reg_covariance(&self) -> F[src]

pub fn n_runs(&self) -> u64[src]

pub fn max_n_iterations(&self) -> u64[src]

pub fn init_method(&self) -> &GmmInitMethod[src]

pub fn rng(&self) -> R[src]

pub fn with_covariance_type(mut self: Self, covar_type: GmmCovarType) -> Self[src]

Set the covariance type.

pub fn with_tolerance(mut self: Self, tolerance: F) -> Self[src]

Set the convergence threshold. EM iterations will stop when the lower bound average gain is below this threshold.

pub fn with_reg_covariance(mut self: Self, reg_covar: F) -> Self[src]

Non-negative regularization added to the diagonal of covariance. Allows to assure that the covariance matrices are all positive.

pub fn with_n_runs(mut self: Self, n_runs: u64) -> Self[src]

Set the number of initializations to perform. The best results are kept.

pub fn with_max_n_iterations(mut self: Self, max_n_iter: u64) -> Self[src]

Set the number of EM iterations to perform.

pub fn with_init_method(mut self: Self, init_method: GmmInitMethod) -> Self[src]

Set the method used to initialize the weights, the means and the precisions.

pub fn with_rng<R2: Rng + Clone>(self, rng: R2) -> GmmHyperParams<F, R2>[src]

pub fn validate(&self) -> Result<(), GmmError>[src]

Trait Implementations

impl<F: Clone + Float, R: Clone + Rng> Clone for GmmHyperParams<F, R>[src]

impl<F: Debug + Float, R: Debug + Rng> Debug for GmmHyperParams<F, R>[src]

impl<'a, F: Float + Lapack + Scalar, R: Rng + Clone, D: Data<Elem = F>, T: Targets> Fit<'a, ArrayBase<D, Dim<[usize; 2]>>, T> for GmmHyperParams<F, R>[src]

type Object = Result<GaussianMixtureModel<F>, GmmError>

Auto Trait Implementations

impl<F, R> RefUnwindSafe for GmmHyperParams<F, R> where
    F: RefUnwindSafe,
    R: RefUnwindSafe
[src]

impl<F, R> Send for GmmHyperParams<F, R> where
    R: Send
[src]

impl<F, R> Sync for GmmHyperParams<F, R> where
    R: Sync
[src]

impl<F, R> Unpin for GmmHyperParams<F, R> where
    F: Unpin,
    R: Unpin
[src]

impl<F, R> UnwindSafe for GmmHyperParams<F, R> where
    F: UnwindSafe,
    R: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,