40 Chapter 4 Classification
•Each internal node of the tree is encoded by the ID of the splitting
attribute. If there are mattributes, the cost of encoding each attribute
is log2mbits.
•Each leaf is encoded using the ID of the class it is associated with. If
there are kclasses, the cost of encoding a class is log2kbits.
•Cost(tree) is the cost of encoding all the nodes in the tree. To simplify
the computation, you can assume that the total cost of the tree is
obtained by adding up the costs of encoding each internal node and
each leaf node.
•Cost(data|tree) is encoded using the classification errors the tree com-
mits on the training set. Each error is encoded by log2nbits, where n
is the total number of training instances.
Which decision tree is better, according to the MDL principle?
Answer:
10. While the .632 bootstrap approach is useful for obtaining a reliable estimate
of model accuracy, it has a known limitation. Consider a two-class problem,
where there are equal number of positive and negative examples in the data.
Suppose the class labels for the examples are generated randomly. The clas-
sifier used is an unpruned decision tree (i.e., a perfect memorizer). Determine
the accuracy of the classifier using each of the following methods.
(a) The holdout method, where two-thirds of the data are used for training
and the remaining one-third are used for testing.
Answer: