Index Ai Academy
Glossary · Phase 3 · Machine learning

Class weights

Also written: class weight

Making each example of a rare class count for more in the loss, so a model pays attention to it without discarding any data.

Try it now

Slide the threshold and watch precision and recall trade places. Then lower the share who churned and see accuracy stop telling you anything.

Learn it properly

Precision, recall and F1 · Accuracy lies; these don't. About 30 minutes.

Create a free account See what's in the lesson

Other terms from the same 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