1
$\begingroup$

When using k-fold cross validation in a neural network, do you also need a separate validation set? Or is the use of the k-fold on its own good enough to minimise the possibility of over-training?

$\endgroup$

1 Answer 1

1
$\begingroup$

It depends on what you want to do. There are two cases:

  1. You want to convince someone that your method is good.
  2. You want to use your method in production.

In the case of 1., you should have a test set that you never even looked at in your model bulding phase. Otherwise information from the test set might leak into the model building process via your brain.

In the case of 2., the best approach is probably to use the full data for model selection and train on the full data afterwards. To battle overfitting, you can use many folds.

A more recent and exotic approach is to do the following:

  1. Split data into train, validation and test.
  2. Optimize model on train performing early stopping on the validation data. Remember training error $e_{\text{train}}$.
  3. Further optimize model on training and validation, until $e_{\text{validation}} = e_{\text{train}}$.
  4. Evaluate $e_{\text{test}}$

I don't know of any theoretical justification for this, but it seems to work quite well.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.