Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. from sklearn.naive_bayes import GaussianNB
  2.  
  3. def NB():
  4. gnb = GaussianNB()
  5. #学習
  6. gnb.fit(bow["datas"], bow["classes"])
  7.  
  8. #認識
  9. classifiedResult = gnb.predict(bow["datas"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement