pub struct StructuredVariationalGMMTrained { /* private fields */ }Expand description
Trained Structured Variational Gaussian Mixture Model
Implementations§
Source§impl StructuredVariationalGMMTrained
impl StructuredVariationalGMMTrained
Sourcepub fn predict_proba(&self, X: &ArrayView2<'_, f64>) -> SklResult<Array2<f64>>
pub fn predict_proba(&self, X: &ArrayView2<'_, f64>) -> SklResult<Array2<f64>>
Predict class probabilities
Sourcepub fn score(&self, X: &ArrayView2<'_, f64>) -> SklResult<f64>
pub fn score(&self, X: &ArrayView2<'_, f64>) -> SklResult<f64>
Compute log-likelihood of the data
Sourcepub fn model_selection(&self) -> &ModelSelection
pub fn model_selection(&self) -> &ModelSelection
Get model selection criteria
Sourcepub fn lower_bound(&self) -> f64
pub fn lower_bound(&self) -> f64
Get the lower bound (ELBO)
Sourcepub fn responsibilities(&self) -> &Array2<f64>
pub fn responsibilities(&self) -> &Array2<f64>
Get the final responsibilities
Sourcepub fn mean_values(&self) -> &Array2<f64>
pub fn mean_values(&self) -> &Array2<f64>
Get the variational mean parameters
Sourcepub fn precision_values(&self) -> &Array3<f64>
pub fn precision_values(&self) -> &Array3<f64>
Get the variational precision parameters
Sourcepub fn structured_cov(&self) -> &Array3<f64>
pub fn structured_cov(&self) -> &Array3<f64>
Get the structured covariance parameters
Sourcepub fn structured_family(&self) -> StructuredFamily
pub fn structured_family(&self) -> StructuredFamily
Get the structured approximation family
Trait Implementations§
Source§impl Clone for StructuredVariationalGMMTrained
impl Clone for StructuredVariationalGMMTrained
Source§fn clone(&self) -> StructuredVariationalGMMTrained
fn clone(&self) -> StructuredVariationalGMMTrained
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Estimator<Trained> for StructuredVariationalGMMTrained
impl Estimator<Trained> for StructuredVariationalGMMTrained
Source§type Error = SklearsError
type Error = SklearsError
Error type for the estimator
Source§fn validate_config(&self) -> Result<(), SklearsError>
fn validate_config(&self) -> Result<(), SklearsError>
Validate estimator configuration with detailed error context
Source§fn check_compatibility(
&self,
n_samples: usize,
n_features: usize,
) -> Result<(), SklearsError>
fn check_compatibility( &self, n_samples: usize, n_features: usize, ) -> Result<(), SklearsError>
Check if estimator is compatible with given data dimensions
Source§fn metadata(&self) -> EstimatorMetadata
fn metadata(&self) -> EstimatorMetadata
Get estimator metadata
Source§impl Predict<ArrayBase<ViewRepr<&f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<usize>, Dim<[usize; 1]>>> for StructuredVariationalGMMTrained
impl Predict<ArrayBase<ViewRepr<&f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<usize>, Dim<[usize; 1]>>> for StructuredVariationalGMMTrained
Source§fn predict(&self, X: &ArrayView2<'_, f64>) -> SklResult<Array1<usize>>
fn predict(&self, X: &ArrayView2<'_, f64>) -> SklResult<Array1<usize>>
Make predictions on the provided data
Source§fn predict_with_uncertainty(
&self,
x: &X,
) -> Result<(Output, UncertaintyMeasure), SklearsError>
fn predict_with_uncertainty( &self, x: &X, ) -> Result<(Output, UncertaintyMeasure), SklearsError>
Make predictions with confidence intervals
Auto Trait Implementations§
impl Freeze for StructuredVariationalGMMTrained
impl RefUnwindSafe for StructuredVariationalGMMTrained
impl Send for StructuredVariationalGMMTrained
impl Sync for StructuredVariationalGMMTrained
impl Unpin for StructuredVariationalGMMTrained
impl UnwindSafe for StructuredVariationalGMMTrained
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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