DAILY PRACTICEBuild your AI engineering skills, one problem at a time.Try today's challenge
InferenceAIStart learning path

Machine Learning · Beginner

Classification

Classification predicts a discrete label, such as whether a message needs human review.

TRY IT YOURSELF

Explore precision and recall

Adjust counts from a binary classifier. These examples are illustrative.

Precision80.0%
Recall80.0%

How it works

For binary classification, compare predicted labels with known labels. True positives, false positives, and false negatives reveal different types of outcome.

A concrete example

In spam detection, a false positive marks a legitimate message as spam; a false negative lets spam through.

Watch for this

Accuracy alone can be misleading when classes are imbalanced or different mistakes have different costs.

Try it yourself

Increase false positives and observe precision. Increase false negatives and observe recall.

Continue to practice →

Read the source: Google: classification metrics ↗

Related concepts

Regression →

Decision trees →

Feature engineering →