Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sklearn.naive_bayes import GaussianNB
- def NB():
- gnb = GaussianNB()
- #学習
- gnb.fit(bow["datas"], bow["classes"])
- #認識
- classifiedResult = gnb.predict(bow["datas"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement