Question: Question 3 Decision Tree Classifier ? [ 4 5 % ] Consider the Data S e t 2 in Table 2 for a classification problem,
Question Decision Tree Classifier
Consider the Data in Table for a classification problem, where all attributes are nominal.
a Use data records as the training set to build a decision tree for predicting the class attribute. Use entropy as the impurity measure and the information gain as the prepruning criteria. Show your steps.
b Use data records as the training set to complete the decision tree in Figure by assigning a class label to each of the leaf nodes.
c Use the data records as the test set.
i Construct the confusion matrix for the completed decision tree in part b
ii Calculate the corresponding accuracy.
iii. Calculate the precision and recall with respect to class
tableRecord,LWLDRWRDClassTrainingLow,Low,Low,Low,RsetLow,Low,Low,High,BLow,Low,High,Low,RLow,Low,High,Low,BLow,High,Low,Low,BLow,High,Low,High,LLow,High,High,Low,RHigh,Low,Low,High,LHigh,Low,Low,High,BHigh,Low,High,Low,RHigh,High,Low,High,LHigh,High,High,High,LTest set,Low,Low,Low,High,BLow,High,Low,Low,LLow,High,High,High,RHigh,Low,Low,Low,BHigh,Low,High,High,RHigh,High,High,Low,L
Table Dataset for classification
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
