According to the following data set and the two different decision trees, please calculate the information gain (based Entrop

According to the following data set and the two different decision trees, please calculate the information gain (based Entropy) and GINI index for each split on on both Model 1 and Model 2. Note: You may use calculator or R to compute, but please list the steps to demonstrate how you calculate the corresponding Information Gain and GINI index at each split categorical Marital categorical continuous Taxable class Tid Refund Status Cheat Income 1 Yes Single 125K No 2 No Married 100K No 3 No Single 70K No 4 Yes Married 120K No 5 No Divorced 95K Yes 6 No Married 60K No 7 Yes Divorced 220K No No Single 85K Yes 9 No Married 75K No Single 10 No 90K Yes MarSt Splitting Attributes Single, Divorced Married Refund No Refund NO Yes NO MarSt Yes NO Single, Divorced Married Taxinc NO 80K and less



Source link

Leave a Reply

Your email address will not be published.