When would you frame a problem as clustering instead of classification?

Quick Overview

Asks when a machine learning problem should be framed as clustering and when as classification. Tests reasoning about labels, predefined categories, cluster validation and the limits of unsupervised groupings, plus how the two approaches combine in practice.

When would you frame a problem as clustering instead of classification?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

When would you frame a problem as clustering instead of classification? ```hint Start from the data Ask whether the categories you care about are defined before you look at the data, and whether past examples carry those labels. Then think about how the output will be used. ``` ### What a Strong Answer Covers - The role of labels and predefined categories in choosing between the two framings - Concrete use cases for each framing - The limits of clustering: dependence on features and distance, and how hard it is to choose and validate the number of clusters - How clustering and classification can be combined in one workflow ### Follow-up Questions - How would you check whether a set of clusters is meaningful when you have no labels? - You have labels for 2% of the data. Which framing would you use, and why? - How would you keep cluster-based customer segments stable when the model is refit every month? - Where does anomaly detection fit relative to clustering and classification for spotting new fraud patterns?

Overview: Asks when a machine learning problem should be framed as clustering and when as classification. Tests reasoning about labels, predefined categories, cluster validation and the limits of unsupervised groupings, plus how the two approaches combine in practice.

PracHub logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

When would you frame a problem as clustering instead of classification?

What a Strong Answer Covers Guidance

  • The role of labels and predefined categories in choosing between the two framings
  • Concrete use cases for each framing
  • The limits of clustering: dependence on features and distance, and how hard it is to choose and validate the number of clusters
  • How clustering and classification can be combined in one workflow

Follow-up Questions Guidance

  • How would you check whether a set of clusters is meaningful when you have no labels?
  • You have labels for 2% of the data. Which framing would you use, and why?
  • How would you keep cluster-based customer segments stable when the model is refit every month?
  • Where does anomaly detection fit relative to clustering and classification for spotting new fraud patterns?