next up previous contents
Next: Conversions Up: Useful Scripts and Previous: Useful Scripts and

Comparing two Inducers

Here is an example of a shell script that compares ID3 with a bagged ID3. Because ID3 is very unstable, large improvements can be seen for some files. For this script, monk1 improves from 81.25% to 90.51%; crx improves from 74.00% to 79.00%; and waveform improves from 70.21% to 78.87%.

#Script to compare bagging of ID3

# first time, log 1; otherwise, log 0
setenv LOGLEVEL 1
foreach i (monk1 crx waveform-21)
   echo ------------------- $i ------------------------
   setenv DATAFILE $i
   setenv INDUCER id3
   setenv INDUCER bagging
   setenv BAG_INDUCER id3
   setenv LOGLEVEL 0

Ronny Kohavi
Sun Oct 6 23:17:50 PDT 1996