def predict(self, X, y=None):
        self._check_is_fitted()
        X = _check_X(X, None, self.means_.shape[1])
        return self._estimate_weighted_log_prob(X).argmax(axis=1)
Predict the labels for the data samples in X using trained model.
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/mixture/base.py/BaseMixture.predict