Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Model Evaluation›Hamming Loss
MCDMMulti-label Metric

Hamming Loss

Hamming Loss (Multi-label Classification) · Also known as: Hamming Distance, Subset Accuracy Loss

Hamming loss measures the fraction of labels that are incorrectly predicted in multi-label classification. It counts the number of label mistakes divided by the total number of labels, providing a simple metric for multi-label problems.

ScholarGate
  1. MCDM
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Hamming Loss
Jaccard Index

When to use it

Use Hamming loss for multi-label classification where each sample can have multiple labels and you want to penalize individual label errors. It is appropriate for document tagging, image annotation, and multilingual text processing where samples naturally have multiple labels.

Strengths & limitations

Strengths
  • Simple and intuitive: measures fraction of incorrect labels.
  • Provides partial credit for partially correct predictions.
  • Directly interpretable as an error rate across all labels.
  • Computationally efficient.
Limitations
  • Does not distinguish between false positives and false negatives for individual labels.
  • Treats all labels as equally important; does not account for label imbalance.
  • Does not account for label correlations or hierarchies.
  • May be dominated by the most frequent labels in imbalanced multi-label settings.

Frequently asked

How does Hamming loss differ from 0/1 loss (subset accuracy)?

Hamming loss counts individual incorrect labels and averages across all labels. Subset accuracy (0/1 loss) counts a sample as wrong if ANY label is wrong, giving 0/1 credit per sample. Hamming loss gives partial credit and is less strict; subset accuracy is stricter, requiring all labels to be correct for credit.

What is a good Hamming loss value?

It depends on the problem. A Hamming loss of 0.05 or below is usually considered good. However, on multi-label problems with many labels, even random guessing can result in low Hamming loss if most labels are negative. Compare against appropriate baselines (e.g., predicting the most common label for all instances).

Should I use Hamming loss if labels are imbalanced?

Hamming loss treats all labels equally, so it can be dominated by the most frequent labels. For imbalanced multi-label data, consider weighted variants or examine per-label precision and recall separately to ensure minority labels are not ignored.

Sources

  1. Schapire, R. E., & Singer, Y. (2000). BoosTexter: A boosting-based system for text categorization. Machine Learning, 39(2-3), 135-168. DOI: 10.1023/A:1007649029923 ↗
  2. Tsoumakas, G., & Katakis, I. (2007). Multi-label classification: An overview. International Journal of Data Warehousing and Mining, 3(3), 1-13. DOI: 10.4018/jdwm.2007070101 ↗

How to cite this page

ScholarGate. (2026, June 3). Hamming Loss (Multi-label Classification). ScholarGate. https://scholargate.app/en/model-evaluation/hamming-loss

Related methods

Jaccard Index

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Jaccard IndexModel Evaluation↔ compare
Compare side by side →

Referenced by

Jaccard Index

Similar methods

Jaccard IndexLog-Loss (Cross-Entropy Loss)AccuracyMacro-averaged F1Brier ScoreBalanced AccuracyPrecisionF1-Score

Related reference concepts

Performance MetricsText ClassificationVC Dimension and CapacitySupervised LearningModel Evaluation and SelectionClassification Algorithms

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Hamming Loss (Hamming Loss (Multi-label Classification)). Retrieved 2026-07-21 from https://scholargate.app/en/model-evaluation/hamming-loss · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Information theory and multi-label learning
Subfamily
Multi-label Metric
Year
2000s
Type
Loss function
Related methods
Jaccard Index
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account