'Fit and then predict labels for data.
Warning: Due to the final maximization step in the EM algorithm,
with low iterations the prediction may not be 100%  accurate.
.. versionadded:: 0.17
*fit_predict* method in Gaussian Mixture Model.
Parameters
X : array-like, shape = [n_samples, n_features]
Returns
C : array, shape = (n_samples,) component memberships'

def fit_predict(self, X, y=None):

    return self._fit(X, y).argmax(axis=1)
