I am new to the forum. I was instructed to come here by Hadley Wickham himself. I am trying to build a decision tree on the classical example by Witten (Data Mining). I can draw the tree by hand and can get it to work in WEKA. This tool produces the same tree I can draw by hand. I have Googled it and nobody seems to get the right answer. The raw data for the three is
Outlook Temp Humidity Windy Play 1 Sunny Hot High FALSE No 2 Sunny Hot High TRUE No 3 Overcast Hot High FALSE Yes 4 Rainy Mild High FALSE Yes 5 Rainy Cool Normal FALSE Yes 6 Rainy Cool Normal TRUE No 7 Overcast Cool Normal TRUE Yes 8 Sunny Mild High FALSE No 9 Sunny Cool Normal FALSE Yes 10 Rainy Mild Normal FALSE Yes 11 Sunny Mild Normal TRUE Yes 12 Overcast Mild High TRUE Yes 13 Overcast Hot Normal FALSE Yes 14 Rainy Mild High TRUE No
I am using Play ~ Outlook+Temp+Humidity+Windy
The root should be Outlook, the left child is Sunny, and the right child is Rainy. The middle child is the pure node Outcast. Sunny has Humidity as its child and Rainy has Windy. Sunny and Rainy have two terminal nodes and the tree ends.
I am teaching a class on this subject and this decision tree is driving me crazy because I cannot get it to look like the one I get in WEKA besides, some of the packages in RStudio tell me this is not a tree but a single node.
I want to know if anyone of you can help me, and my students, to figure this one out. I have drawn trees before but this one has all baffled. Any help from anybody?
My email is firstname.lastname@example.org if you want to comment directly. Thanks for all your help.
Ramon A. Mata-Toledo