Answer it
P1 a4 tree depth
3 marksYou mark it yourself against the marking points
A student trains a decision tree to predict whether a library book will be returned late. She tries three values for the maximum depth of the tree and measures the accuracy each time, on the training data and on separate test data.
| Maximum depth | Accuracy on training data | Accuracy on test data |
|---|---|---|
| 2 | 71% | 70% |
| 6 | 86% | 84% |
| 20 | 100% | 68% |
(a) State whether the maximum depth is a hyperparameter or a learned parameter, and give a reason. [1]
(b) Explain which maximum depth causes overfitting, and how the table shows it. [2]
[3]