deepof.utils.gmm_compute

deepof.utils.gmm_compute(x: array, n_components: int, cv_type: str) list

Fit a Gaussian Mixture Model to the provided data and returns evaluation metrics.

Parameters:
  • x (numpy.ndarray) – Data matrix to train the model

  • n_components (int) – Number of Gaussian components to use

  • cv_type (str) – Covariance matrix type to use. Must be one of “spherical”, “tied”, “diag”, “full”.

Returns:

model and associated BIC for downstream selection.

Return type:

  • gmm_eval (list)