Question: Q . 1 . Consider the dataset below that categorizes dogs into two classes: danger and safe, based on their features. Test Data 1 .
Q Consider the dataset below that categorizes dogs into two classes: "danger" and "safe", based on their features.
Test Data
Use the ID algorithm to construct a decision train on the training data above.
Make sure that you use logbase in your calculations of entropy.
In no more than pages. Show your calculations. Take a note of the calculated entropy, weighted means of entropy, and information gains.
If there is a tie between any two attributes in information gain, we consider them from left to right as they appear in the table. For example if splitting on Color, and on Body Shape give the same smallest possible gain, we choose to split on Color.
In your calculations keep the computed values within decimal digits. For example, say an entropy was found to be mathbfE We drop any digit after the text b decimal digit with no rounding so E becomes mathrmE Make sure that you apply this rule before using any computed value in any further computation. This rule applies to any calculated entropy, weighted mean of entropy, and gain.
If you used Python to perform any calculations, compile a list of the main commands you used in a separate page, to appear as page number three.
On one separate page draw the entire decision tree. In total no more than pages for this problem. Calculations pages, code page, tree page
Answer any questions about your decision tree and work in Blackboard.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
