Gmm
Source header: cuvs/cluster/gmm.hpp
Gaussian mixture hyperparameters
cluster::gmm::covariance_type
Covariance parameterization of the mixture components.
Values
cluster::gmm::init_method
Strategy used to initialize the responsibilities before EM.
Values
cluster::gmm::params
Hyper-parameters for the Gaussian mixture EM solver.
All defaults match scikit-learn’s GaussianMixture so that results are directly comparable out of the box.
Fields
Gaussian mixture model APIs
cluster::gmm::fit
Fit a Gaussian mixture with the EM algorithm.
Runs params.n_init random restarts (unless warm_start is true) and keeps the parameters with the largest lower bound. Writes the fitted weights, means, covariances, precisions_chol and precisions, the per-sample hard labels (argmax of the final responsibilities), and the scalar lower_bound / n_iter / converged diagnostics.
When warm_start is true the incoming weights / means / covariances are used as the single initialization and params.n_init is ignored.
Parameters
Returns
void
Additional overload: cluster::gmm::fit
Fit a Gaussian mixture with the EM algorithm.
Double-precision overload; see the single-precision overload for details.
Parameters
Returns
void
cluster::gmm::predict
Hard component labels (argmax responsibility) for new data.
Parameters
Returns
void
Additional overload: cluster::gmm::predict
Hard component labels (argmax responsibility) for new data.
Double-precision overload; see the single-precision overload for details.
Parameters
Returns
void
cluster::gmm::predict_proba
Posterior responsibilities for new data.
Parameters
Returns
void
Additional overload: cluster::gmm::predict_proba
Posterior responsibilities for new data.
Double-precision overload; see the single-precision overload for details.
Parameters
Returns
void
cluster::gmm::score_samples
Per-sample log-likelihood log p(x_i) for new data.
Parameters
Returns
void
Additional overload: cluster::gmm::score_samples
Per-sample log-likelihood log p(x_i) for new data.
Double-precision overload; see the single-precision overload for details.
Parameters
Returns
void