Lab 9 - Identification Trees
Lab 9 - Identification Trees
Class: BSCS-9AB
Date: 24-11-2023
Introduction:
Lab Task:
Train an Identification Tree classifier considering the following learning problem: the problem
of deciding whether to wait for a table at a restaurant. For this problem the output, is a
Boolean variable that we will call WillWait; it is true for examples where we do wait for a
table. The input, x , is a vector of ten attribute values, each of which has discrete values:
A set of 12 examples, taken from the experience of one individual, is shown in the Figure at the
end. Randomly select 10 examples for the training set and 2 examples for validation set. Then
use the training set to build your identification tree. The best solution in this case would give a
general function that takes a training set as input and returns the best possible identification
tree using the ranking disorder approach discussed in the lecture. Once the tree has been built,
test the performance of your tree on the validation set. The best solution in this case would be
a general function that takes an identification tree and the validation set as input and returns
the number of correct predictions on the validation set.