ott.tools.gaussian_mixture.gaussian_mixture.GaussianMixture#
- class ott.tools.gaussian_mixture.gaussian_mixture.GaussianMixture(loc, scale_params, component_weight_ob)[source]#
Gaussian Mixture model.
Methods
List of all GMM components.
Compute the component-conditional log probability of x.
from_mean_cov_component_weights
(mean, cov, ...)Construct a GMM from means, covariances, and component weights.
from_points_and_assignment_probs
(points, ...)Estimate a GMM from points and a set of component probabilities.
from_random
(rng, n_components, n_dimensions)Construct a random GMM.
get_component
(index)Specified GMM component.
Compute the posterior probability that x came from each component.
has_nans
()- rtype
Log component weights probabilities.
log_prob
(x)Compute the log probability of the observations x.
sample
(rng, size)Generate samples from the distribution.
Attributes
Cholesky decomposition of the GMM covariance matrices.
Component weight object.
Component weights probabilities.
Covariance matrices of the GMM.
Dtype of the GMM parameters.
Location parameters of the GMM.
Number of components of the GMM parameters.
Number of dimensions of the GMM parameters.
Scale parameters of the GMM.