AI engineering glossary · Feature engineering data prep

What is undersampling?

Undersampling (also called Random undersampling): Balancing classes by removing examples from the majority class so the classes end up closer in size. It speeds training but throws away information, so it suits very large datasets.

Level: beginnerTopic: Feature engineering data prep

Undersampling: an example

Randomly keeping 2,000 of 99,800 non-fraud cases beside 200 frauds gives a much more balanced training set.

Related terms

More Feature engineering data prep terms

Where you learn it

Undersampling is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.