AI engineering glossary · Feature engineering data prep

What is sample weights?

Sample weights: Per-row numbers that tell a model how much each training example should count in the loss. They are used to reflect importance, recency or sampling design, and to compensate for imbalance.

Level: intermediateTopic: Feature engineering data prep

Sample weights: an example

Recent transactions get weight 2 and older ones weight 1, so the model attends more to current behaviour.

Related terms

More Feature engineering data prep terms

Where you learn it

Sample weights 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.