Struct linfa_clustering::GmmHyperParams [−][src]
The set of hyperparameters that can be specified for the execution of the GMM algorithm.
Implementations
impl<F: Float> GmmHyperParams<F, Isaac64Rng>[src]
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]
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(self, covar_type: GmmCovarType) -> Self[src]
Set the covariance type.
pub fn with_tolerance(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(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(self, n_runs: u64) -> Self[src]
Set the number of initializations to perform. The best results are kept.
pub fn with_max_n_iterations(self, max_n_iter: u64) -> Self[src]
Set the number of EM iterations to perform.
pub fn with_init_method(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: Clone + Float, R: Clone + Rng> Clone for GmmHyperParams<F, R>[src]fn clone(&self) -> GmmHyperParams<F, R>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl<F, R> RefUnwindSafe for GmmHyperParams<F, R> where
F: RefUnwindSafe,
R: RefUnwindSafe,
impl<F, R> RefUnwindSafe for GmmHyperParams<F, R> where
F: RefUnwindSafe,
R: RefUnwindSafe, impl<F, R> Send for GmmHyperParams<F, R> where
R: Send,
impl<F, R> Send for GmmHyperParams<F, R> where
R: Send, impl<F, R> Sync for GmmHyperParams<F, R> where
R: Sync,
impl<F, R> Sync for GmmHyperParams<F, R> where
R: Sync, impl<F, R> Unpin for GmmHyperParams<F, R> where
F: Unpin,
R: Unpin,
impl<F, R> Unpin for GmmHyperParams<F, R> where
F: Unpin,
R: Unpin, impl<F, R> UnwindSafe for GmmHyperParams<F, R> where
F: UnwindSafe,
R: UnwindSafe,
impl<F, R> UnwindSafe for GmmHyperParams<F, R> where
F: UnwindSafe,
R: UnwindSafe,