Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15251/Outlook2000
Modified Files:
manager.py
Log Message:
Pass more information to the stats manager.
Index: manager.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/manager.py,v
retrieving revision 1.102
retrieving revision 1.103
diff -C2 -d -r1.102 -r1.103
*** manager.py 21 Dec 2004 21:48:37 -0000 1.102
--- manager.py 21 Dec 2004 23:18:32 -0000 1.103
***************
*** 457,463 ****
s_thres = self.config.filter.spam_threshold
u_thres = self.config.filter.unsure_threshold
mdb = self.classifier_data.message_db
self.stats = bayes_stats.Stats(s_thres, u_thres, mdb, "ham",
! "unsure", "spam")
# Logging - this should be somewhere else.
--- 457,468 ----
s_thres = self.config.filter.spam_threshold
u_thres = self.config.filter.unsure_threshold
+ fp_cost = bayes_options["TestDriver", "best_cutoff_fp_weight"]
+ fn_cost = bayes_options["TestDriver", "best_cutoff_fn_weight"]
+ unsure_cost = bayes_options["TestDriver",
+ "best_cutoff_unsure_weight"]
mdb = self.classifier_data.message_db
self.stats = bayes_stats.Stats(s_thres, u_thres, mdb, "ham",
! "unsure", "spam", fp_cost, fn_cost,
! unsure_cost)
# Logging - this should be somewhere else.
_______________________________________________
Spambayes-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/spambayes-checkins