Skip to content

Multi-Class and Multi-Label Classification

The difference between choosing one class from many and assigning several labels at once, with methods and metrics for each.

Editorial team 1 min read

Beyond yes-or-no classification, two common variations arise.

Multi-Class

Each example belongs to exactly one of several classes — classifying a support ticket as billing, technical or account.

Approaches:

  • Models that handle multiple classes natively, like trees, forests and neural networks with softmax outputs.
  • One-vs-rest: train one binary classifier per class.
  • One-vs-one: train classifiers for each pair of classes.

Multi-Label

Each example can have several labels at once — an article tagged "health", "policy" and "research".

Approaches:

  • Independent binary classifiers per label.
  • Neural networks with sigmoid outputs per label.
  • Methods that model label dependencies, such as classifier chains.

Metrics

  • Multi-class: accuracy, per-class precision and recall, confusion matrices, and macro or weighted averages.
  • Multi-label: per-label metrics, micro and macro averages, Hamming loss and subset accuracy.

Macro Versus Micro

Macro averaging treats every class equally, highlighting rare-class performance. Micro averaging weights by frequency.

Imbalance

Rare classes are common in both settings; check per-class results.

More in Machine learning

All Machine learning guides →
Machine learning Guide · 2 min

Linear Regression Explained

The simplest predictive model: how linear regression fits a line through data, how to read its coefficients, and when it breaks down.

Machine learning 2 min read 1 Sep 2026

Machine learning Guide · 2 min

Logistic Regression for Classification

Despite its name, logistic regression is a classification method. How it produces probabilities and why it remains a strong baseline.

Machine learning 2 min read 31 Aug 2026

Machine learning Guide · 2 min

Decision Trees

How decision trees split data with simple questions, why they are easy to explain, and why single trees overfit.

Machine learning 2 min read 30 Aug 2026

Machine learning Guide · 2 min

Random Forests

Why averaging many randomised decision trees produces a robust, accurate model with little tuning.

Machine learning 2 min read 29 Aug 2026