Warning: Declaration of action_plugin_tablewidth::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /s/bach/b/class/cs545/public_html/fall16/lib/plugins/tablewidth/action.php on line 93
code:naive_bayes [CS545 fall 2016]

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]
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