> I'm trying to understand how you implemented the Chi2 > technique.
Do you mean the whole classifier, or just the inverse-chi-squared function (chi2.chi2Q())? > Can someone tell me how chi2 method is implemented in spambayes? What exactly do you mean by how it's implemented? Do you want an explanation of how the math works (Gary Robinson's Linux Journal paper is probably best for that), or how the math was turned into Python? If the latter, then reading classifier.py is probably the best thing to do. Concentrate on the Classifier class, particularly the chi2_spamprob() and probability() methods. If you understand how they work (and the comments do a pretty good job of explaining how they relate to the math), then that's mostly it. If there's something you don't understand, then asking about the specific part of the code would probably make it easier to answer. > Has this been discussed before? I've tried searching the archives. Well, I'm sure people discussed it at the time it was written (when it replaced the earlier combining methods). That's long before this spambayes-dev list started, though. It might be at the start of the spambayes@python.org list, but I suspect you'll have to go back to when spambayes was discussed on python-dev. I wouldn't really recommend the archives as a place to find these answers. =Tony.Meyer _______________________________________________ spambayes-dev mailing list spambayes-dev@python.org http://mail.python.org/mailman/listinfo/spambayes-dev