SimPEG.utils.GaussianMixtureWithNonlinearRelationships.fit_predict#
- GaussianMixtureWithNonlinearRelationships.fit_predict(X, y=None)[source]#
- Estimate model parameters using X and predict the labels for X. - The method fits the model n_init times 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_iter times until the change of likelihood or lower bound is less than tol, otherwise, a - ConvergenceWarningis raised. After fitting, it predicts the most probable label for the input data points.- New in version 0.20. - 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:
- labelsarray,shape(n_samples,)
- Component labels. 
 
- labels