User Tools

Site Tools


code:naive_bayes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

code:naive_bayes [2016/11/15 13:50]
asa created
code:naive_bayes [2016/11/15 13:50] (current)
asa
Line 2: Line 2:
  
 Scikit-learn provides both Gaussian and multinomial/​binomial flavors of Naive Bayes. Scikit-learn provides both Gaussian and multinomial/​binomial flavors of Naive Bayes.
-Here's a code snippet that uses the Gaussian version and shows the resulting decision boundary for toy 2-d data (it uses ``decision_boundary.py`` from a [[code:​nearest_neighbors | previous demo]]):+Here's a code snippet that uses the Gaussian version and shows the resulting decision boundary for toy 2-d data (it uses ''​decision_boundary.py'' ​from a [[code:​nearest_neighbors | previous demo]]):
  
 <file python naive_bayes.py>​ <file python naive_bayes.py>​
code/naive_bayes.txt ยท Last modified: 2016/11/15 13:50 by asa