Leave-One-Out CV — when is it a good idea, and when is it a bad idea?
medium- 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.