def fit(self, X, y, sample_weight=None):
        X, y = check_X_y(X, y)
        return self._partial_fit(X, y, np.unique(y), _refit=True,
                                 sample_weight=sample_weight)
Fit Gaussian Naive Bayes according to X, y
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/naive_bayes.py/GaussianNB.fit