Glossary · Phase 3 · Machine learning
Oversampling
Repeating examples of a rare class, or making new ones near them, so that a model sees the classes in more equal numbers.
Other terms from the same lesson
- class weights: Making each example of a rare class count for more in the loss, so a model pays attention to it without discarding any data.
- F1 score: One number that balances precision and recall.
- false negative: A no the model got wrong: it predicted the customer would stay, but they churned.
- false positive: A yes the model got wrong: it predicted churn, but the customer stayed.
- harmonic mean: An average that stays low if either number is low. F1 is the harmonic mean of precision and recall.
- macro average: Averaging a score across classes with each class counted equally, however rare it is.
- precision: Of the things a model flagged, the share that were right.
- recall: Of the things that should have been flagged, the share the model caught.
- true negative: A no the model got right: it predicted the customer would stay, and they did.
- true positive: A yes the model got right: it predicted churn, and the customer did churn.
- undersampling: Training on every example of the rare class and a random sample of the common one, so the classes are balanced; it throws data away.
Keep learning
More in plain English.
1286 terms in the glossary, each with the lesson that teaches it.
1286 terms
Every word you'll meet in AI and machine learning, explained in everyday language.
Find a term →
Phase 3 · lesson 42 min
Accuracy lies; these don't.
See the lesson →
Never trained an AI? Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account. Teach it to write