Learning from Data: Decision Trees
Amos Storkey, School of Informatics University of Edinburgh Semester 1, 2004
LfD 2004
Learning from Data: Decision Trees Amos Storkey, School of - - PowerPoint PPT Presentation
Learning from Data: Decision Trees Amos Storkey, School of Informatics University of Edinburgh Semester 1, 2004 LfD 2004 Decision Tree Learning - Overview Decision tree representation ID3 learning algorithm Entropy, Information gain
LfD 2004
Acknowledgement: These slides are based on slides modified by Chris Williams and produced by Tom Mitchell, available from http://www.cs.cmu.edu/˜tom/ LfD 2004 1
1The method can be extended to learning continuous-valued functions LfD 2004 2
Outlook Overcast Sunny Humidity Wind High Strong Rain Weak Normal No Yes No Yes Yes
LfD 2004 3
LfD 2004 4
LfD 2004 5
LfD 2004 6
LfD 2004 7
A1=? A2=? t t f f [29+,35-] [29+,35-] [21+,5-] [8+,30-] [18+,33-] [11+,2-] LfD 2004 8
LfD 2004 9
LfD 2004 10
LfD 2004 11
LfD 2004 12
LfD 2004 13
Outlook Overcast Sunny Humidity Wind High Strong Rain Weak Normal No Yes No Yes Yes
LfD 2004 14
0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 10 20 30 40 50 60 70 80 90 100 Accuracy Size of tree (number of nodes) On training data On test data
LfD 2004 15
LfD 2004 16
LfD 2004 17
0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 10 20 30 40 50 60 70 80 90 100 Accuracy Size of tree (number of nodes) On training data On test data On test data (during pruning)
LfD 2004 18
LfD 2004 19
c
LfD 2004 20
LfD 2004 21
LfD 2004 22