DataTaunew | comments | leaders | submitlogin
Naive Bayes in Python (yhathq.com)
11 points by glamp 3422 days ago | 4 comments


3 points by narrator 3422 days ago | link

Nice blog post, but you really should use sklearn, especially if you're working in python.

-----

4 points by isms 3422 days ago | link

I would guess the intent behind using vanilla python instead of libraries was to help learners understand exactly what's going on instead of just plugging stuff into a black box.

He says at the end: "Naive Bayes is great because it's fairly easy to see what's going on under the hood. It's a great way to start any text analysis and it can easily scale out of core to work in a distributed environment. There are some excellent implementations in the Python community you can use as well, so if you don't want to roll your own, have no fear! The scikit-learn and nltk versions are great places to start."

-----

2 points by glamp 3422 days ago | link

Greg here (the author).

@narrator - Totally agree. I was more just going for a simple example to explain the concepts behind naive bayes.

Thanks for reading!

-----

2 points by rohit 3422 days ago | link

Hi Greg! Thanks for sharing the post on DataTau!

@narrator: Safe to assume he knows a thing or two about the package. This is the author teaching scikit-learn: http://blog.yhathq.com/posts/data-science-in-python-tutorial...

-----




RSS | Announcements