Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Quick but detailed solution with the tree please Question 2 B - Decision Tree Learning [ 2 5 % ] You have been given 5
Quick but detailed solution with the tree please
Question B Decision Tree Learning
You have been given training examples representing various cars and their attributes. The target attribute is 'Safety Rating, which can have only two values: 'Good' or 'Poor. This is to be predicted based on the other attributes of the car Type.
Here's a training samples from the dataset:
tableCar Type,Engine Size,Airbags,Antilock Brakes,Safety RatingSedanMedium,Yes,Yes,GoodSUVLarge,Yes,Yes,GoodHatchbackSmall,NoNoPoorSUVMedium,Yes,Yes,GoodSedanLarge,Yes,Yes,Poor
a Calculate the entropy of the target attribute. Recall that
Entropy
Where is the proportion of belonging to class i Also note that
b Show the value of the information gain for each candidate attribute at each step in the construction of the tree.
c Construct the decision tree structure from the above examples, which would be learned by the ID algorithm.
In your report you need to include all details of the tree construction process following steps
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started