import numpy as np
X = np.array([[-1,-1],[-2,-1],[-3,-2],[1,1],[2,1],[3,2]])
Y = np.array([1,1,1,2,2,2])
from sklearn.naive_bayes import GaussianNB
print("Naive Bayes Example")

clf = GaussianNB()
clf.fit(X,Y)
print "Prediction of [-0.8,1] with fit is:", clf.predict([[-0.8,1]])

clf_pf = GaussianNB()
clf_pf.partial_fit(X, Y, np.unique(Y))
print "Prediction of [-0.8,1] with partial_fit is:", clf_pf.predict([[-0.8,1]])
