[cvs] bogofilter/src bogotune.c,1.53,1.54
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2003-11-30 00:46:27
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1:/tmp/cvs-serv4392 Modified Files: bogotune.c Log Message: Minor clean-up. Index: bogotune.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bogotune.c,v retrieving revision 1.53 retrieving revision 1.54 diff -u -d -r1.53 -r1.54 --- bogotune.c 29 Nov 2003 21:09:11 -0000 1.53 +++ bogotune.c 30 Nov 2003 00:46:21 -0000 1.54 @@ -448,8 +448,6 @@ while (cutoff >= SPAM_CUTOFF && ++ftarget < count) cutoff = scores[ftarget-1]; - spam_cutoff = scores[ftarget+1] + 0.0005; - return ftarget; } @@ -1098,6 +1096,7 @@ min_dev = 0.02; target = get_thresh(ns_cnt, ns_scores); + spam_cutoff = ns_scores[target-1]; printf("False-positive target is %d (cutoff %8.6f)\n", target, spam_cutoff); /* |