[Spambayes-checkins] spambayes/Outlook2000 oastats.py,1.10,1.11
Tony Meyer
anadelonbrin at users.sourceforge.net
Tue Dec 7 01:43:52 CET 2004
Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7727/Outlook2000
Modified Files:
oastats.py
Log Message:
For historical reasons we use "good" not "ham"; make consistent.
Fix a typo that stopped the stats working if there was no spam trained.
Index: oastats.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/oastats.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** oastats.py 6 Dec 2004 18:04:35 -0000 1.10
--- oastats.py 7 Dec 2004 00:43:49 -0000 1.11
***************
*** 162,166 ****
perc_spam_correct = 100.0
perc_spam_unsure = 0.0
! perc_spam_incorrect_or_unsure = 100.0
format_dict = locals().copy()
del format_dict["self"]
--- 162,166 ----
perc_spam_correct = 100.0
perc_spam_unsure = 0.0
! perc_spam_correct_or_unsure = 100.0
format_dict = locals().copy()
del format_dict["self"]
***************
*** 252,256 ****
push((_("Spam correctly identified:\t%(perc_spam_correct_s)s (+ %(perc_spam_unsure_s)s unsure)") \
% format_dict) % format_dict)
! push((_("Ham incorrectly identified:\t%(perc_ham_incorrect_s)s (+ %(perc_ham_unsure_s)s unsure)") \
% format_dict) % format_dict)
--- 252,256 ----
push((_("Spam correctly identified:\t%(perc_spam_correct_s)s (+ %(perc_spam_unsure_s)s unsure)") \
% format_dict) % format_dict)
! push((_("Good incorrectly identified:\t%(perc_ham_incorrect_s)s (+ %(perc_ham_unsure_s)s unsure)") \
% format_dict) % format_dict)
More information about the Spambayes-checkins
mailing list