Contents, points, point_weights, steps, jit=True, verbose=False)[source]#

Fit a GMM using the EM algorithm.

  • gmm (GaussianMixture) – initial GMM model

  • points (Array) – set of samples to fit, shape (n, n_dimensions)

  • point_weights (Optional[Array]) – optional set of weights for points, shape (n,). If None, uses equal weights for all points.

  • steps (int) – number of steps of EM to perform

  • jit (bool) – if True, compile functions

  • verbose (bool) – if True, print the loss at each step

Return type:



A GMM with updated parameters.