model-selection-and-validation
Choose a model family, design validation that proves the model will generalise, and diagnose overfitting or underfitting. Use when someone asks which algorithm to use; how to split training and test data; about cross-validation, or stratified, grouped or time-based splits; hyperparameter tuning or grid search; regularisation, tree depth or pruning; k for k-nearest neighbours; bias and variance; learning curves; why test performance is much worse than training; whether more data would help; or why a model that validated well failed after launch. Not for choosing a decision threshold or business metric for a classifier, not for cleaning or auditing the dataset, and not for explaining what a term such as cross-validation or overfitting means when no dataset or model is in play.
Pinned to revision a18d88341e79, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/model-selection-and-validation/SKILL.md
- skills/model-selection-and-validation/references/cv-design.md
- skills/model-selection-and-validation/references/model-choice.md
- skills/model-selection-and-validation/scripts/bias_variance_check.py
Every link opens the file at its source, pinned to the revision this page describes.