[cvs] bogofilter/src bogotune.c,1.62,1.63
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2003-12-02 03:22:14
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1:/tmp/cvs-serv25686 Modified Files: bogotune.c Log Message: Change threshold percent to 0.14%. Index: bogotune.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bogotune.c,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -r1.62 -r1.63 --- bogotune.c 1 Dec 2003 19:07:54 -0000 1.62 +++ bogotune.c 1 Dec 2003 20:57:58 -0000 1.63 @@ -72,7 +72,7 @@ #define PREF_COUNT 4000 /* preferred message count */ #define LARGE_COUNT 40000 -#define MIN_THR_PCT 0.0015 /* minimum threshold percent */ +#define MIN_THR_PCT 0.0014 /* minimum threshold percent */ #define MAX_THR_PCT 0.0050 /* maximum threshold percent */ #define HAM_CUTOFF 0.10 @@ -459,9 +459,10 @@ return ans; } -/* compute scores and get fp target and spam cutoff value +/* compute scores and set global variables: ** -** sets global variables target and spam_cutoff +** target +** spam_cutoff ** ** As count increases from 500 to 4000 ... ** 1) initial target percent drops from 1% to 0.25% @@ -505,6 +506,9 @@ cutoff = SPAM_CUTOFF; --ftarget; } + + if (verbose >= PARMS) + print_ns_scores(ftarget-4, ftarget+4, 0); target = ftarget; spam_cutoff = cutoff; |