Definition
Leave-one-out cross-validation (LOOCV) is a specific case of k-fold cross-validation where k equals the number of samples in the dataset. It provides a nearly unbiased estimate of model performance because each observation serves as the test set exactly once. While computationally expensive due to the need to train the model n times, it is highly effective for small datasets where maximizing training data usage is critical for robust evaluation.
Summary
A rigorous resampling technique where the model is trained on all but one sample and tested on that single held-out sample, repeated for every data point.
Key Concepts
- Resampling
- Model Evaluation
- Bias-Variance Tradeoff
- Computational Cost
Use Cases
- Evaluating models on small medical datasets
- Hyperparameter tuning when data is scarce
- Comparing algorithm performance rigorously
Code Example
| |