Closed ruv closed 11 years ago
Now the classifier is not Bayesian in real. (Where did you find Math.log in Bayesian? ;)
And more, it seems to be incorrect:
tokens_probability function must "Returns Float between 0.0 and 1.0" (by doc) — but it returns negative numbers. Why?
Implementation of language_probability function seems incorrect in the root.
See also issue #437
The classifier works in log probabilities.
Thank you. Sorry for my ignorance =) I think we have to correct the comment for tokens_probability function.
Now the classifier is not Bayesian in real. (Where did you find Math.log in Bayesian? ;)
And more, it seems to be incorrect:
tokens_probability function must "Returns Float between 0.0 and 1.0" (by doc) — but it returns negative numbers. Why?
Implementation of language_probability function seems incorrect in the root.
See also issue #437