pub struct MultiModalGaussianMixtureTrained {
pub weights: Array1<f64>,
pub modality_means: HashMap<String, Array2<f64>>,
pub modality_covariances: HashMap<String, Array3<f64>>,
pub shared_latent_means: Option<Array2<f64>>,
pub latent_projections: HashMap<String, Array2<f64>>,
pub coupling_parameters: Array2<f64>,
pub log_likelihood_history: Vec<f64>,
pub n_iter: usize,
pub config: MultiModalConfig,
}Expand description
Trained Multi-Modal GMM
Fields§
§weights: Array1<f64>weights
modality_means: HashMap<String, Array2<f64>>modality_means
modality_covariances: HashMap<String, Array3<f64>>modality_covariances
shared_latent_means
latent_projections: HashMap<String, Array2<f64>>latent_projections
coupling_parameters: Array2<f64>coupling_parameters
log_likelihood_history: Vec<f64>log_likelihood_history
n_iter: usizen_iter
config: MultiModalConfigconfig
Implementations§
Source§impl MultiModalGaussianMixtureTrained
impl MultiModalGaussianMixtureTrained
Sourcepub fn predict_proba(
&self,
X: &HashMap<String, Array2<f64>>,
) -> SklResult<Array2<f64>>
pub fn predict_proba( &self, X: &HashMap<String, Array2<f64>>, ) -> SklResult<Array2<f64>>
Predict class probabilities for multi-modal data
Sourcepub fn score(&self, X: &HashMap<String, Array2<f64>>) -> SklResult<f64>
pub fn score(&self, X: &HashMap<String, Array2<f64>>) -> SklResult<f64>
Compute log-likelihood of the data
Sourcepub fn model_selection(
&self,
X: &HashMap<String, Array2<f64>>,
) -> SklResult<ModelSelection>
pub fn model_selection( &self, X: &HashMap<String, Array2<f64>>, ) -> SklResult<ModelSelection>
Get model selection criteria
Trait Implementations§
Source§impl Clone for MultiModalGaussianMixtureTrained
impl Clone for MultiModalGaussianMixtureTrained
Source§fn clone(&self) -> MultiModalGaussianMixtureTrained
fn clone(&self) -> MultiModalGaussianMixtureTrained
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 moreAuto Trait Implementations§
impl Freeze for MultiModalGaussianMixtureTrained
impl RefUnwindSafe for MultiModalGaussianMixtureTrained
impl Send for MultiModalGaussianMixtureTrained
impl Sync for MultiModalGaussianMixtureTrained
impl Unpin for MultiModalGaussianMixtureTrained
impl UnwindSafe for MultiModalGaussianMixtureTrained
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