[Spambayes-checkins] spambayes runtest.sh,1.4,1.5
Neale Pickett
npickett@users.sourceforge.net
Tue, 01 Oct 2002 10:53:56 -0700
Update of /cvsroot/spambayes/spambayes
In directory usw-pr-cvs1:/tmp/cvs-serv24576
Modified Files:
runtest.sh
Log Message:
* Took out old tests nobody needs to run anymore. If you want them,
get an older revision :)
Index: runtest.sh
===================================================================
RCS file: /cvsroot/spambayes/spambayes/runtest.sh,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** runtest.sh 27 Sep 2002 19:40:22 -0000 1.4
--- runtest.sh 1 Oct 2002 17:53:54 -0000 1.5
***************
*** 50,96 ****
python cmp.py run1s run2s | tee results.txt
;;
- robinson1)
- # This test requires you have an appropriately-modified
- # Tester.py.new and classifier.py.new as detailed in
- # <LNBBLJKPBEHFEDALKOLCKENMBEAB.tim.one@comcast.net>
-
- python timcv.py -n $SETS > run1.txt
-
- mv Tester.py Tester.py.orig
- cp Tester.py.new Tester.py
- mv classifier.py classifier.py.orig
- cp classifier.py.new classifier.py
- python timcv.py -n $SETS > run2.txt
-
- python rates.py run1 run2 > runrates.txt
-
- python cmp.py run1s run2s | tee results.txt
-
- mv Tester.py.orig Tester.py
- mv classifier.py.orig classifier.py
- ;;
- mass)
- ## Tim took this code out, don't run this test. I'm leaving
- ## this stuff in here for the time being so I can refer to it
- ## later when I need to do this sort of thing again :)
-
- # Clear out .ini file
- rm -f bayescustomize.ini
- # Run 1
- python timcv.py -n $SETS > run1.txt
- # New .ini file
- cat > bayescustomize.ini <<EOF
- [Classifier]
- adjust_probs_by_evidence_mass: True
- min_spamprob: 0.001
- max_spamprob: 0.999
- hambias: 1.5
- EOF
- # Run 2
- python timcv.py -n $SETS > run2.txt
- # Generate rates
- python rates.py run1 run2 > runrates.txt
- # Compare rates
- python cmp.py run1s run2s | tee results.txt
- ;;
esac
--- 50,52 ----