EasyDeepLearn

Leave-One-Out CV — when is it a good idea, and when is it a bad idea?

medium

Answer

  • LOOCV uses n-1 samples for training and 1 for validation, repeated n times.
  • Pros: nearly unbiased estimate of generalization error, uses maximum training data per fold.
  • Cons: (1) computationally brutal for anything but linear models with closed-form updates; (2) high variance of the estimate because folds are almost identical; (3) doesn't work with grouped data (each row is its own fold).
  • Prefer 5- or 10-fold CV for most practical cases.
  • LOOCV is only clearly best when n is very small.
Check yourself — multiple choice
  • LOOCV is always the best CV strategy
  • Almost-unbiased but expensive and high-variance; prefer 5- or 10-fold in practice
  • LOOCV is only used for image data
  • LOOCV doesn't require a validation set

LOOCV: unbiased but expensive and high-variance. 5/10-fold is the practical default.

#cv#validation

Practise Supervised Learning

215 interview questions in this topic.

Related questions