aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 3. Learning & Generalization
Lesson 1 of 11 7 min · 152 words

Datasets and sampling

Training data as a sample from an unknown distribution.

We assume the data comes from an unknown probability distribution over pairs . Our dataset is a sample: examples drawn independently and identically distributed (i.i.d.) from .

Everything we learn is an estimate based on this sample. A bigger sample gives a better picture of ; a biased sample gives a distorted one. If you only collect data from one hospital, a model may fail at another with different patients or equipment — this is called distribution shift.

Good sampling practice: make sure the data represents the situations where the model will be used, watch for duplicates that cross the train/test boundary, and keep classes reasonably balanced or account for imbalance.

Formula to remember

Bias–variance decomposition

Expected error = squared bias + variance + irreducible noise.

Quick check · +5 XP

Training error 1%, test error 30% most likely means…

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser