pub struct GaussianMixture {
pub n_components: usize,
pub covariance_type: CovarianceType,
pub max_iter: usize,
pub tol: f32,
pub n_init: usize,
pub reg_covar: f32,
/* private fields */
}Expand description
Gaussian Mixture Model using EM algorithm
Fields§
§n_components: usize§covariance_type: CovarianceType§max_iter: usize§tol: f32§n_init: usize§reg_covar: f32Implementations§
Source§impl GaussianMixture
impl GaussianMixture
pub fn new(n_components: usize) -> Self
pub fn covariance_type(self, ct: CovarianceType) -> Self
pub fn max_iter(self, n: usize) -> Self
pub fn fit(&mut self, x: &Tensor)
pub fn predict(&self, x: &Tensor) -> Tensor
pub fn predict_proba(&self, x: &Tensor) -> Tensor
pub fn fit_predict(&mut self, x: &Tensor) -> Tensor
pub fn score(&self, x: &Tensor) -> f32
pub fn bic(&self, x: &Tensor) -> f32
pub fn aic(&self, x: &Tensor) -> f32
Auto Trait Implementations§
impl Freeze for GaussianMixture
impl RefUnwindSafe for GaussianMixture
impl Send for GaussianMixture
impl Sync for GaussianMixture
impl Unpin for GaussianMixture
impl UnwindSafe for GaussianMixture
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> 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