[Spambayes] Patch and info on how to run a test

papaDoc papaDoc@videotron.ca
Mon, 30 Sep 2002 16:30:27 -0400


This is a multi-part message in MIME format.

---------------------- multipart/mixed attachment
Hi,

    This is a small patch to help people which don't have python in 
their path.
They will need to change runtest.sh at only one place.

runtest.sh is talking about
    # This test requires you have an appropriately-modified
    # Tester.py.new and classifier.py.new as detailed in
    # <LNBBLJKPBEHFEDALKOLCKENMBEAB.tim.one@comcast.net>
Where can I find those two files ?
There is no search on the mailing list archive and I subscribed to the 
list after this message.

Also I can run some test but I need to a good .ini file can someone 
provide me with one.
I don't have 2000 spams yet only 1546  now but going up every days.


papaDoc


---------------------- multipart/mixed attachment
Index: runtest.sh
===================================================================
RCS file: /cvsroot/spambayes/spambayes/runtest.sh,v
retrieving revision 1.4
diff -r1.4 runtest.sh
31a32,33
> PYTHON=python
> 
34,35c36,37
<     python rebal.py -r Data/Ham/reservoir -s Data/Ham/Set -n 0 -Q
<     python rebal.py -r Data/Spam/reservoir -s Data/Spam/Set -n 0 -Q
---
>     $PYTHON rebal.py -r Data/Ham/reservoir -s Data/Ham/Set -n 0 -Q
>     $PYTHON rebal.py -r Data/Spam/reservoir -s Data/Spam/Set -n 0 -Q
37,38c39,40
<     python rebal.py -r Data/Ham/reservoir -s Data/Ham/Set -n $RNUM -Q
<     python rebal.py -r Data/Spam/reservoir -s Data/Spam/Set -n $RNUM -Q
---
>     $PYTHON rebal.py -r Data/Ham/reservoir -s Data/Ham/Set -n $RNUM -Q
>     $PYTHON rebal.py -r Data/Spam/reservoir -s Data/Spam/Set -n $RNUM -Q
43c45
< 	python timcv.py -n $SETS > run1.txt
---
> 	$PYTHON timcv.py -n $SETS > run1.txt
46c48
< 	python timcv.py -n $SETS > run2.txt
---
> 	$PYTHON timcv.py -n $SETS > run2.txt
48c50
<         python rates.py run1 run2 > runrates.txt
---
>         $PYTHON rates.py run1 run2 > runrates.txt
50c52
<         python cmp.py run1s run2s | tee results.txt
---
>         $PYTHON cmp.py run1s run2s | tee results.txt
57c59
< 	python timcv.py -n $SETS > run1.txt
---
> 	$PYTHON timcv.py -n $SETS > run1.txt
63c65
< 	python timcv.py -n $SETS > run2.txt
---
> 	$PYTHON timcv.py -n $SETS > run2.txt
65c67
< 	python rates.py run1 run2 > runrates.txt
---
> 	$PYTHON rates.py run1 run2 > runrates.txt
67c69
<         python cmp.py run1s run2s | tee results.txt
---
>         $PYTHON cmp.py run1s run2s | tee results.txt
80c82
< 	python timcv.py -n $SETS > run1.txt
---
> 	$PYTHON timcv.py -n $SETS > run1.txt
90c92
< 	python timcv.py -n $SETS > run2.txt
---
> 	$PYTHON timcv.py -n $SETS > run2.txt
92c94
< 	python rates.py run1 run2 > runrates.txt
---
> 	$PYTHON rates.py run1 run2 > runrates.txt
94c96
< 	python cmp.py run1s run2s | tee results.txt
---
> 	$PYTHON cmp.py run1s run2s | tee results.txt

---------------------- multipart/mixed attachment--