FRM Part I · FRM Exam Part I · Machine-Learning Methods
A data scientist splits data into training, validation and test sets to build a default-prediction model. Which use of the three sets is correct?
Parameters are fitted on the training set, hyperparameters are tuned on the validation set, and the test set is used once at the end to estimate out-of-sample performance. Tuning on the test set leaks information and gives an overly optimistic performance estimate.
- AFit parameters on the training set, tune hyperparameters on the validation set, and assess final performance once on the test setCorrect
- BFit parameters on the test set, tune hyperparameters on the training set, and assess performance on the validation set
- CTune hyperparameters repeatedly on the test set so the final error estimate is as low as possible
- DFit parameters and tune hyperparameters on the training set, then use validation and test sets interchangeably
Explanation
The training set estimates model parameters, the validation set selects hyperparameters such as regularization strength, and the untouched test set gives an unbiased estimate of out-of-sample performance. Tuning on the test set leaks information and makes the performance estimate optimistic.
Did you get it right without looking?
One question tells you little. A timed set on Machine-Learning Methods shows your real accuracy, how long you take and where you lose marks.
More Machine-Learning Methods questions
- A node in a classification tree holds 40 observations: 30 non-defaults and 10 defaults. Using the Gini impurity, 1 minus the sum of squared …
- A bank compares a neural network with a regularized linear model for predicting corporate defaults using a modest dataset of 800 firms and 1…
- A risk analyst fits a regression of credit spread changes on 40 candidate predictors using only 120 observations. The ordinary least squares…
- A model predicting loan losses achieves a mean squared error of 0.5 on the training sample but 4.0 on a held-out validation sample. Which in…
- A network has 4 inputs, one hidden layer with 5 neurons, and 1 output neuron. Every neuron in a layer is connected to every neuron in the pr…
- A LASSO model minimizes the sum of squared residuals plus lambda times the sum of absolute coefficients. A model has coefficients 2.0, -1.5,…