Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following data set will be used to learn a decision tree for predicting whether a mushroom is edible or not based on its

The following data set will be used to learn a decision tree for predicting whether a mushroom is edible or 

The following data set will be used to learn a decision tree for predicting whether a mushroom is edible or not based on its shape, color, and odor. Shape C D D C D C C C D Color BB W W B B G U B W W Odor 1 1 1 2 2 22233 3 Edible Yes Yes Yes Yes Yes No No No No No No (a) What is entropy H(Edible Odor = 1 or Odor = 3)? (b) Which attribute would the C4.5 algorithm choose to use for the root of the tree? (c) Draw the full decision tree that would be learned for this data (no pruning). (d) Suppose we have a validation set as follows. What will be the training set error and validation set error of the tree? Express your answer as the number of examples that would be misclassified.

Step by Step Solution

3.42 Rating (152 Votes )

There are 3 Steps involved in it

Step: 1

a To calculate the entropy HEdibleOdor 1 or Odor 3 we need to first compute the probabilities of eac... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions