- GaussianMixtureWithPrior.fit(X, y=None, debug=False)#
Estimate model parameters with the EM algorithm.
[modified from Scikit-Learn for Maximum A Posteriori estimates (MAP)] The method fits the model
n_inittimes and sets the parameters with which the model has the largest likelihood or lower bound. Within each trial, the method iterates between E-step and M-step for
max_itertimes until the change of likelihood or lower bound is less than
tol, otherwise, a
ConvergenceWarningis raised. If
n_initis ignored and a single initialization is performed upon the first call. Upon consecutive calls, training starts where it left off.