jlapacheorg author jm date thu oct 18 130913 2007 new revision 586111 url httpsvnapacheorgviewvcrev586111viewrev log implement bayes chain rule algorithm modified spamassassinbranchesbug5293pluginizedbayeslibmailspamassassinpluginosbfpm modified spamassassinbranchesbug5293pluginizedbayeslibmailspamassassinpluginosbfpm url httpsvnapacheorgviewvcspamassassinbranchesbug5293pluginizedbayeslibmailspamassassinpluginosbfpmrev586111r1586110r2586111viewdiff spamassassinbranchesbug5293pluginizedbayeslibmailspamassassinpluginosbfpm original spamassassinbranchesbug5293pluginizedbayeslibmailspamassassinpluginosbfpm thu oct 18 130913 2007 7107 7108 goto skip score mailspamassassinbayescombinecombinens nn sorted score bcr_combinens nn sorted score mailspamassassinbayescombinecombinens nn sorted couldnt come probability goto skip unless defined score 7696 77047 return score combine using bayes chain rule algorithm described eddc paper sub bcr_combine ns nn probary _ pcs ns ns nn pci spam pch nn ns nn pci ham ns nn 0 return combine without ham spam ps 05 accumulators ph 05 foreach p probary note denominator sum i1 p fj ci p ci two classes h pf p pf h 1p p pcs 1p pch invp 1p denom p pcs invp pch ps p denom ph invp denom avoid underflow theyve become 0 reset non0 value multiplications still work ps 0 ps 1e300 ph 0 ph 1e300 pick lowest value tip httpwwwbglnubogofilterbcrfisherhtml ph ps ps 1ph else ph 1ps return ps plugin hook 12507 12927 099 instead 0125 makes sense us k1 025 k2 10 k3 4 k3 1 sumf n die assert sumf 0 unless sumf wdotsumf weight sumf wed 06 aug 2008 182733 0000 svn commit r586111 spamassassinbranchesbug5293pluginizedbayeslibmailspamassassinpluginosbfpm