1. Lehrstuhl fuer Maschinelles Lernen und Natuerlich Sprachliche Systeme Albrecht Zimmernann, Tayfun Guerel, Kristian Kersting , Prof. Dr. Luc De Raedt, Machine Learning in Games Crash Course on Machine Learning
15. Lehrstuhl fuer Maschinelles Lernen und Natuerlich Sprachliche Systeme Albrecht Zimmernann, Tayfun Guerel, Kristian Kersting , Prof. Dr. Luc De Raedt, Machine Learning in Games Crash Course on Decision Tree Learning Refund MarSt TaxInc YES NO NO NO Yes No Married Single, Divorced < 80K > 80K
20. Decision Tree for PlayTennis Outlook Sunny Overcast Rain Humidity High Normal Wind Strong Weak No Yes Yes Yes No
21. Decision Tree for PlayTennis Outlook Sunny Overcast Rain Humidity High Normal No Yes Each internal node tests an attribute Each branch corresponds to an attribute value node Each leaf node assigns a classification
22. Decision Tree for PlayTennis Outlook Temperature Humidity Wind PlayTennis Sunny Hot High Weak ? No Outlook Sunny Overcast Rain Humidity High Normal Wind Strong Weak No Yes Yes Yes No
23. Decision Tree for Conjunction Outlook Sunny Overcast Rain Wind Strong Weak No Yes No Outlook=Sunny Wind=Weak No
24. Decision Tree for Disjunction Outlook Sunny Overcast Rain Yes Outlook=Sunny Wind=Weak Wind Strong Weak No Yes Wind Strong Weak No Yes
25. Decision Tree for XOR Outlook Sunny Overcast Rain Wind Strong Weak Yes No Outlook=Sunny XOR Wind=Weak Wind Strong Weak No Yes Wind Strong Weak No Yes
37. Yet Another Example: Playing Tennis No Strong High Mild Rain D14 Yes Weak Normal Hot Overcast D13 Yes Strong High Mild Overcast D12 Yes Strong Normal Mild Sunny D11 Yes Strong Normal Mild Rain D10 Yes Weak Normal Cold Sunny D9 No Weak High Mild Sunny D8 Yes Weak Normal Cool Overcast D7 No Strong Normal Cool Rain D6 Yes Weak Normal Cool Rain D5 Yes Weak High Mild Rain D4 Yes Weak High Hot Overcast D3 No Strong High Hot Sunny D2 No Weak High Hot Sunny D1 Play Tennis Wind Humidity Temp. Outlook Day
40. ID3 Algorithm Outlook Sunny Overcast Rain Humidity High Normal Wind Strong Weak No Yes Yes Yes No [D3,D7,D12,D13] [D8,D9,D11] [D6,D14] [D1,D2] [D4,D5,D10]
43. Converting a Tree to Rules R 1 : If (Outlook=Sunny) (Humidity=High) Then PlayTennis=No R 2 : If (Outlook=Sunny) (Humidity=Normal) Then PlayTennis=Yes R 3 : If (Outlook=Overcast) Then PlayTennis=Yes R 4 : If (Outlook=Rain) (Wind=Strong) Then PlayTennis=No R 5 : If (Outlook=Rain) (Wind=Weak) Then PlayTennis=Yes Outlook Sunny Overcast Rain Humidity High Normal Wind Strong Weak No Yes Yes Yes No