from sklearn.datasets import make_classification
from sklearn.naive_bayes import GaussianNB
X, y = make_classification(n_samples=1000, weights=[0.1, 0.9])
gnb = GaussianNB()
gnb.fit(X, y)
How to specify the prior probability for scikit-learn's Naive Bayes