Question: Question 1 Consider the training examples shown in the table below for the binary classification problem for a pet store's loyalty program members. Customer ID


Question 1 Consider the training examples shown in the table below for the binary classification problem for a pet store's loyalty program members. Customer ID Shops Weekly Pet Class yes 1 2 3 yes cat dog both CO CO yes yes cat CO yes cat CO 4 5 6 7 8 yes cat dog CO CO no no CO 9 no cat cat cat no CO 8 8 8 8 8 8 8 8 8 8 5 5 5 5 5 5 5 5 0 0 yes ci 10 11 12 13 14 15 16 yes no ci no no cat both both dog both dog dog dog dog dog no no no 17 18 19 20 no no a. Compute and the Entropy for the overall collection of training examples. b. Compute the Entropy for all the three attributes: Customer ID, Shops Weekly, and Pet, using multi-way splits (the number of splits is equal to the number of possible values) for Customer ID and Pet, and binary split for Shops Weekly. C. Compute the Information Gain for all the three attributes. Which attribute provides the highest Information Gain? d. Compute the Gain Ratio for all the three attributes. Which attribute provides the highest Gain Ratio
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
