pub struct GaussianMixture {
pub n_components: usize,
pub covariance_type: CovarianceType,
pub max_iter: usize,
pub tol: f32,
pub reg_covar: f32,
pub n_init: usize,
/* private fields */
}Expand description
Gaussian Mixture Model
Fields§
§n_components: usize§covariance_type: CovarianceType§max_iter: usize§tol: f32§reg_covar: f32§n_init: usizeImplementations§
Source§impl GaussianMixture
impl GaussianMixture
pub fn new(n_components: usize) -> Self
pub fn covariance_type(self, cov_type: CovarianceType) -> Self
pub fn max_iter(self, iter: usize) -> Self
pub fn tol(self, tolerance: f32) -> Self
Sourcepub fn predict_proba(&self, x: &Tensor) -> Tensor
pub fn predict_proba(&self, x: &Tensor) -> Tensor
Predict probabilities for each component
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