def score_samples(self, X):
        self._check_is_fitted()
        X = _check_X(X, None, self.means_.shape[1])

        return logsumexp(self._estimate_weighted_log_prob(X), axis=1)
Compute the weighted log probabilities for each sample.
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/mixture/base.py/BaseMixture.score_samples