Home › Glossary › Fundamentals › Binary classification

Beginner · Fundamentals

Binary classification

Visual diagram · (in preparation) · Math · (in preparation) · Worked example · 3 difficulty levels.

TL;DR. A machine learning task that categorizes input into one of two mutually exclusive classes, like 'spam' or 'not spam'.

Technical Definition

A machine learning task that categorizes input into one of two mutually exclusive classes, like 'spam' or 'not spam'.

How it works

Binary classification is a common supervised learning task where the goal is to assign an input to one of two possible categories. Examples include classifying emails as spam or not spam, or diagnosing a disease as present or absent.

Related Concepts

  • Classification — A supervised learning task where the model assigns inputs to discrete categories.
  • Machine Learning — A field of AI where systems learn patterns from data instead of following hard-coded rules.
  • Supervised Learning — Learning from input–output pairs where each training example carries a correct label.
  • Evaluation Metrics — Quantitative measures used to assess the performance, accuracy, and quality of AI models for specific tasks.

Further Reading

  • Google ML Glossary