Question: Q . 1 . Consider the dataset below that categorizes dogs into two classes: danger and safe, based on their features. Test Data 1 .

Q.1. Consider the dataset below that categorizes dogs into two classes: "danger" and "safe", based on their features.
Test Data
1. Use the ID3 algorithm to construct a decision train on the training data above.
2. Make sure that you use log2(base 2) in your calculations of entropy.
3. In no more than 2 pages. Show your calculations. Take a note of the calculated entropy, weighted means of entropy, and information gains.
4. 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.
5. In your calculations keep the computed values within 4 decimal digits. For example, say an entropy was found to be \(\mathbf{E}=3.9753711\). We drop any digit after the \(4^{\text {b }}\) decimal digit with no rounding so \( E \) becomes \(\mathrm{E}=\)3.9753. 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.
6. 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.
7. On one separate page draw the entire decision tree. In total no more than 4 pages for this problem. (Calculations 2 pages, code 1 page, tree 1 page)
8. Answer any questions about your decision tree and work in Blackboard.
Q . 1 . Consider the dataset below that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!