[Spambayes-checkins] spambayes classifier.py,1.61,1.62

Mark Hammond mhammond at users.sourceforge.net
Mon Dec 9 00:36:20 EST 2002


Update of /cvsroot/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv22625

Modified Files:
	classifier.py 
Log Message:
nham should decrement on unlearn (rather than doubly negating which results
in increment!)

At least Outlook now has a test suite that picks this up <wink>


Index: classifier.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/classifier.py,v
retrieving revision 1.61
retrieving revision 1.62
diff -C2 -d -r1.61 -r1.62
*** classifier.py	27 Nov 2002 22:37:55 -0000	1.61
--- classifier.py	9 Dec 2002 08:36:17 -0000	1.62
***************
*** 408,412 ****
              if self.nham <= 0:
                  raise ValueError("non-spam count would go negative!")
!             self.nham -= -1
  
          for word in Set(wordstream):
--- 408,412 ----
              if self.nham <= 0:
                  raise ValueError("non-spam count would go negative!")
!             self.nham -= 1
  
          for word in Set(wordstream):





More information about the Spambayes-checkins mailing list