[−][src]Struct linfa_clustering::GmmHyperParams
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(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]
pub fn clone(&self) -> GmmHyperParams<F, R>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
Auto Trait Implementations
impl<F, R> RefUnwindSafe for GmmHyperParams<F, R> where
F: RefUnwindSafe,
R: RefUnwindSafe,
F: RefUnwindSafe,
R: RefUnwindSafe,
impl<F, R> Send for GmmHyperParams<F, R> where
R: Send,
R: Send,
impl<F, R> Sync for GmmHyperParams<F, R> where
R: Sync,
R: Sync,
impl<F, R> Unpin for GmmHyperParams<F, R> where
F: Unpin,
R: Unpin,
F: Unpin,
R: Unpin,
impl<F, R> UnwindSafe for GmmHyperParams<F, R> where
F: UnwindSafe,
R: UnwindSafe,
F: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub unsafe fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,