PROJECT LINKS/POLL reply only to this message and vote on links below
Ask/Poll News.YC: What is a good open source Bayes classifier?
11–20 of 41 posts
Re: Ask/Poll News.YC: What is a good open source Bayes classifier?
#12Re: Ask/Poll News.YC: What is a good open source Bayes classifier?
#13PROJECT LINKS/POLL reply only to this message and vote on links below
Re: Ask/Poll News.YC: What is a good open source Bayes classifier?
#14What sort of classification are you trying to do? Text, I assume. If it's text and you need something open source, or just a pointer to how to write one yourself, you could read the article I wrote for Dr Dobbs on this subject: http://www.ddj.com/development-tools/184406064 There are quite a lot of toolkits out there that do Bayesian things (take a look at libbow or Weka).
It's only for text processing.
Re: Ask/Poll News.YC: What is a good open source Bayes classifier?
#15If you want to get more serious, use Weka or Bow or YALE or something implemented in a reasonably fast language.
Re: Ask/Poll News.YC: What is a good open source Bayes classifier?
#16Re: Ask/Poll News.YC: What is a good open source Bayes classifier?
#17PROJECT LINKS/POLL reply only to this message and vote on links below
Re: Ask/Poll News.YC: What is a good open source Bayes classifier?
#18Whichever one you use, you'll probably need to edit the source to change the probability formula from (n_hits / n_total) to ((n_hits + 1) / (n_total + 2)). That's the correct formula based on an even distribution of probabilities (which is close enough to the actual distribution in most situations for this to be a huge improvement). I can never find a reference for this when I search for one, but you can verify it ex…
Sounds to me that you are describing Laplace Smoothing in a Naive Bayes classifier. This is a pretty standard technique for avoiding the problem that you are seeing where the probability comes out as 100%/0% because of a lack of information in the model.
All due credit to Laplace for the technique, but the word "smoothing" is making me wince, because it makes it sound as though this is some artificial approximation. For the assumption of an even distribution of probabilities, n+1 / m+2 really _is_ the exact probability of the event repeating. Like I said, you can confirm this experimentally with a quick program.