[Spambayes-checkins] spambayes rates.py,1.5,1.6

Tim Peters tim_one@users.sourceforge.net
Sat, 21 Sep 2002 21:19:10 -0700


Update of /cvsroot/spambayes/spambayes
In directory usw-pr-cvs1:/tmp/cvs-serv9977

Modified Files:
	rates.py 
Log Message:
Brought the module docstring back into line with the truth.

Got rid of some unused computations.


Index: rates.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/rates.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** rates.py	22 Sep 2002 00:18:58 -0000	1.5
--- rates.py	22 Sep 2002 04:19:08 -0000	1.6
***************
*** 7,18 ****
  
      basename + '.txt'
  
! contains output from timtest.py, scans that file for summary statistics,
! displays them to stdout, and also writes them to file
  
      basename + 's.txt'
  
! (where the 's' means 'summary').  This doesn't need a full output file, and
! will display stuff for as far as the output file has gotten so far.
  
  Two of these summary files can later be fed to cmp.py.
--- 7,22 ----
  
      basename + '.txt'
+ or
+     basename
  
! contains output from one of the test drivers (timcv, mboxtest, timtest),
! scans that file for summary statistics, displays them to stdout, and also
! writes them to file
  
      basename + 's.txt'
  
! (where the 's' means 'summary').  This doesn't need a full output file
! from a test run, and will display stuff for as far as the output file
! has gotten so far.
  
  Two of these summary files can later be fed to cmp.py.
***************
*** 49,53 ****
      ntests = nfn = nfp = 0
      sumfnrate = sumfprate = 0.0
-     ntrainedham = ntrainedspam = 0
  
      for line in interesting:
--- 53,56 ----
***************
*** 58,63 ****
          #-> <stat> tested 4000 hams & 2750 spams against 8000 hams & 5500 spams
          if line.startswith('-> <stat> tested '):
-             ntrainedham += int(fields[-5])
-             ntrainedspam += int(fields[-2])
              ntests += 1
              continue
--- 61,64 ----