What is hierarchical classification?

Quick Overview

Asks what hierarchical classification is and how a label taxonomy changes the way you train and score a classifier. Tests knowledge of tree and DAG label structures, flat versus top-down versus global modeling strategies, and hierarchy-aware evaluation metrics.

What is hierarchical classification?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is hierarchical classification? Many real label sets, such as product catalogs or biological species, come organized in levels from coarse to fine. ```hint Follow the labels upward Ask what a fine-grained prediction implies about the coarser labels above it, and how that should change both training and scoring. ``` ### What a Strong Answer Covers - Defines the setting: how the labels are structured and what that structure requires of a prediction. - Describes the ways the problem can vary in label structure, number of paths and prediction depth. - Compares flat, local top-down and global modeling strategies, with a trade-off for each. - Explains how evaluation changes when some mistakes are closer to the truth than others, with a concrete metric. ### Follow-up Questions - In a top-down scheme of local classifiers, how does a mistake at the first level affect the rest of the prediction, and how would you limit the damage? - When should the model be allowed to stop at an internal node, and how would you choose the confidence threshold for that? - If you train one independent binary classifier per node, how do you make sure a child is never predicted without its parent? - How would you handle leaf classes deep in the taxonomy that have only a handful of training examples?

Overview: Asks what hierarchical classification is and how a label taxonomy changes the way you train and score a classifier. Tests knowledge of tree and DAG label structures, flat versus top-down versus global modeling strategies, and hierarchy-aware evaluation metrics.

Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What is hierarchical classification?

Many real label sets, such as product catalogs or biological species, come organized in levels from coarse to fine.

What a Strong Answer Covers Guidance

  • Defines the setting: how the labels are structured and what that structure requires of a prediction.
  • Describes the ways the problem can vary in label structure, number of paths and prediction depth.
  • Compares flat, local top-down and global modeling strategies, with a trade-off for each.
  • Explains how evaluation changes when some mistakes are closer to the truth than others, with a concrete metric.

Follow-up Questions Guidance

  • In a top-down scheme of local classifiers, how does a mistake at the first level affect the rest of the prediction, and how would you limit the damage?
  • When should the model be allowed to stop at an internal node, and how would you choose the confidence threshold for that?
  • If you train one independent binary classifier per node, how do you make sure a child is never predicted without its parent?
  • How would you handle leaf classes deep in the taxonomy that have only a handful of training examples?