Answered step by step
Verified Expert Solution
Link Copied!

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 2B - Decision Tree Learning [25%]
You have been given 5 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 5 training samples from the dataset:
\table[[Car Type,Engine Size,Airbags,Anti-lock Brakes,Safety Rating],[Sedan,Medium,Yes,Yes,Good],[SUV,Large,Yes,Yes,Good],[Hatchback,Small,No,No,Poor],[SUV,Medium,Yes,Yes,Good],[Sedan,Large,Yes,Yes,Poor]]
a) Calculate the entropy of the target attribute. Recall that
Entropy (S)=?defi=1cpilog2(1pi)=i=1c-pilog2(pi)
Where p1 is the proportion of S belonging to class i. Also note that log2(x)=log10(x)log10(2)
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 ID3 algorithm.
In your report you need to include all details of the tree construction process following steps 1-3.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

e. What are the programs research and clinical focus areas?

Answered: 1 week ago