Cross-validation (statistics)

Ever wonder how to test a recipe without knowing the final taste?

Cross-validation (statistics)

Ever wonder how to test a recipe without knowing the final taste?

Imagine you're baking a cake and want to make sure it tastes good before serving it to guests.

You could taste a slice each time you add a new ingredient, but that wouldn't give you the full picture of how the whole cake tastes. Cross-validation is like tasting different slices of the cake throughout the baking process to ensure it tastes good overall.

Example

You bake a cake and divide it into 10 equal parts. Each time you add a new ingredient, you taste 1 part, leaving 9 parts for the next test. You repeat this until you've tasted all parts, getting a better idea of the whole cake's taste.

Remember this

Cross-validation helps predict how well a model will perform on new, unseen data by testing it on different parts of the dataset.

Related concepts

Swipe through more Machine Learning concepts

Open Pocket Polymath