We wish to predict animal classes in a zoo based on different attributes like hair, feathers, eggs, milk and so on. For this task, we are going to train a decision tree model using the rpart algorithm using the optimal hyperparameter combination. This model gives a mean misclassification error (MMCE) of 6.98%. This is the plot of the decision tree

Plotting variable importance.