1
$\begingroup$

When evaluating results using cross-validation, several strategies can be adopted, as using 5 or 10 folds, or doing leave one out cross-validation, as well as doing a 80/20 split.

Under which are general conditions should I try one or another?

$\endgroup$

2 Answers 2

2
$\begingroup$

I generally advocate for cross validation in addition to a hold-out sample. As for the number of folds, that depends heavily on your data. Generally you start to approach diminishing returns after some point, but you should try, and evaluate, several regimes. This is very much an empirical question with no hard and fast best answer.

$\endgroup$
3
$\begingroup$

I think cross-validation is almost always superior to a simple train-test split. The only problem is computation time (for a 5-fold cross validation you have to train your model 5 times).

If your problem allows it, you should always use cross-validation.

The only reason you shouldn't use cross-validation is if your model takes too long to train (e.g. state-of-the-art image recognition networks require weeks of training on GPU clusters).

$\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.