C4.5 [release 8] rule generator Thu Jun 15 09:22:02 2000 ------------------------------- Options: File stem Verbosity level 2 Read 14 cases (4 attributes) from golf ------------------ Processing tree 0 pruning rule for Play Err Used Pess Absent condition 0 2 50.0% 1 5 45.4% outlook = sunny 3 5 81.9% humidity <= 75 eliminate test 1 Err Used Pess Absent condition 1 5 45.4% 5 14 48.5% humidity <= 75 too inaccurate pruning rule for Don't Play Err Used Pess Absent condition 0 3 37.0% 5 9 71.5% outlook = sunny 2 5 64.8% humidity > 75 Rule 1: outlook = sunny humidity > 75 -> class Don't Play [63.0%] pruning rule for Play Err Used Pess Absent condition 0 4 29.3% 5 14 48.5% outlook = overcast Rule 2: outlook = overcast -> class Play [70.7%] pruning rule for Don't Play Err Used Pess Absent condition 0 2 50.0% 3 6 71.1% outlook = rain 3 5 81.9% windy = true Rule 3: outlook = rain windy = true -> class Don't Play [50.0%] pruning rule for Play Err Used Pess Absent condition 0 3 37.0% 2 8 43.4% outlook = rain 2 5 64.8% windy = false Rule 4: outlook = rain windy = false -> class Play [63.0%] Class Play ----- Action Change Value 0 rules, 0 firings: F+=0, F-=9, 21.3 bits (rules=0.0) 2+ 3.7 2[4|0=3.7] 1 rules, 4 firings: F+=0, F-=5, 17.6 bits (rules=3.5) 2- -3.7 4+ 2.7 4[3|0=0.8] 1 rules, 3 firings: F+=0, F-=6, 20.5 bits (rules=6.4) 2+ 5.6 2[4|0=5.6] 4[3|0=2.7] 2 rules, 7 firings: F+=0, F-=2, 14.9 bits (rules=8.8) 2- -5.6 4- -2.7 Best value 14.9 Class Don't Play ----- Action Change Value 0 rules, 0 firings: F+=0, F-=5, 18.8 bits (rules=0.0) 1+ 2.8 1[3|0=2.8] 1 rules, 3 firings: F+=0, F-=2, 15.9 bits (rules=8.0) 1- -2.8 3+ 5.5 3[2|0=1.1] 1 rules, 2 firings: F+=0, F-=3, 17.7 bits (rules=6.4) 1+ 7.3 1[3|0=7.3] 3[2|0=5.5] 2 rules, 5 firings: F+=0, F-=0, 10.5 bits (rules=13.3) 1- -7.3 3- -5.5 Best value 10.5 FalsePos Class 0 Play 0 Don't Play Items: Uncovered Class 9 2 Play 5 0 Don't Play Final rules from tree 0: Rule 2: outlook = overcast -> class Play [70.7%] Rule 4: outlook = rain windy = false -> class Play [63.0%] Rule 1: outlook = sunny humidity > 75 -> class Don't Play [63.0%] Rule 3: outlook = rain windy = true -> class Don't Play [50.0%] Default class: Play Evaluation on training data (14 items): Rule Size Error Used Wrong Advantage ---- ---- ----- ---- ----- --------- 2 1 29.3% 4 0 (0.0%) 0 (0|0) Play 4 2 37.0% 3 0 (0.0%) 0 (0|0) Play 1 2 37.0% 3 0 (0.0%) 3 (3|0) Don't Play 3 2 50.0% 2 0 (0.0%) 2 (2|0) Don't Play Tested 14, errors 0 (0.0%) << (a) (b) <-classified as ---- ---- 9 (a): class Play 5 (b): class Don't Play