gitpan/Algorithm-NaiveBayes — pull request #1 by shawntan (2013-01-26 02:36:14+00:00)
Title: Problem with normalised probablities in prediction

Hi,

I noticed the probabilities being output after rescale() was called do not sum up to one. I reimplemented the rescale function using a trick found in Alex Smola's blog that 'log adds' log probabilities, then I normalised the values and returned the results.

Hope this was the intended behaviour.