simpeg.utils.WeightedGaussianMixture.fit#
- WeightedGaussianMixture.fit(X, y=None)[source]#
- Estimate model parameters with the EM algorithm. - 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- warm_startis- True, then- n_initis ignored and a single initialization is performed upon the first call. Upon consecutive calls, training starts where it left off.- Parameters:
- Xarray_like ofshape(n_samples,n_features)
- List of n_features-dimensional data points. Each row corresponds to a single data point. 
- yIgnored
- Not used, present for API consistency by convention. 
 
- Xarray_like 
- Returns:
- selfobject
- The fitted mixture. 
 
- self
 
