Which attribute should be split on first why show


Given the set of the following examples as a training set to build a decision tree:

EXAMPLE

HEIGHT

HAIR

EYES

CLASS

X1

short

dark

blue

+

X2

short

blond

blue 

-

X3

tall

gray

brown

-

X4

tall

dark

blue

+

X5

short

dark

brown

-

X6

tall

blond

blue

+

Which attribute should be split on first? Why?

Show information gain computations that you used to induce a complete decision tree and draw the tree.

Give the class labels for the following new examples base on your decision tree.

Example

HEIGHT

HAIR

EYES

CLASS

X7

short

gray

brown


X8

tall

dark

brown


Solution Preview :

Prepared by a verified Expert
Macroeconomics: Which attribute should be split on first why show
Reference No:- TGS01674520

Now Priced at $15 (50% Discount)

Recommended (98%)

Rated (4.3/5)