Skip to main content

Module gaussian_mixture_models

Module gaussian_mixture_models 

Source
Expand description

Gaussian mixture models fitted by expectation-maximisation.

See the book entry Gaussian mixture models.

Structs§

GaussianMixture
A mixture p(x) = Σ_k w_k N(x; μ_k, Σ_k) fitted by EM: the E-step computes each component’s responsibility for each point, the M-step re-estimates weights, means and covariances from the responsibility-weighted data, and the log-likelihood never decreases. Initialised from a k-means run. reg_covar is added to every covariance diagonal so components cannot collapse onto single points. Unlike k-means this is a soft clustering with elliptical clusters, and gives a probability model: density, membership probabilities, and the BIC/AIC for choosing k.

Enums§

CovarianceType
The shape of each component’s covariance matrix.