Question: Consider the training set given below, where X, X2, X3 and X4 are attributes and Y is the target value. Y X X X3
Consider the training set given below, where X, X2, X3 and X4 are attributes and Y is the target value. Y X X X3 X4 +1 0 1 0 1 +1 1 1 0 +1 0 +1 1 0 1 -1 -1 -1 -1 1 0 1 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 1 0 1 1 0 0 1 0 0 1 1 a. (Group work) Implement the ID3 algorithm and show what tree results. Please make sure that you are implementing ID3 and are not using some decision tree algorithm/package. Make sure your program, at each split point, prints out the entropy at that time and the information gain of each attribute at that time. b. (Individual work) Design by hand a tree with 4 leaf nodes, 3 internal nodes and depth bounded by two which is consistent with this training data.
Step by Step Solution
3.58 Rating (144 Votes )
There are 3 Steps involved in it
To solve the problem using the ID3 algorithm we need to construct a decision tree based on the information gain of attributes Heres a detailed explana... View full answer
Get step-by-step solutions from verified subject matter experts
