When would you choose spectral clustering over k-means?

Quick Overview

Asks when spectral clustering is a better choice than k-means and when it is not. Tests whether you understand the assumptions behind each clustering method, how spectral clustering works, and what it costs in practice.

When would you choose spectral clustering over k-means?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

When would you choose spectral clustering over k-means? Cover the kinds of data where spectral clustering wins, why it wins there, and the situations where k-means is still the better choice. ```hint Picture a hard case Picture two concentric rings of points and ask what boundary k-means can draw between them. ``` ### What a Strong Answer Covers - The assumption k-means makes about cluster shape, and the data where that assumption fails. - How spectral clustering works, step by step. - The kinds of input spectral clustering can accept that k-means cannot. - The costs and limits of spectral clustering, and when they make k-means the better choice. ### Follow-up Questions - How would you choose the number of clusters for spectral clustering? - How would you make spectral clustering work on a few million points? - After clustering, how would you assign a new point to one of the clusters? - How does spectral clustering compare with DBSCAN on the same ring-shaped data?

Overview: Asks when spectral clustering is a better choice than k-means and when it is not. Tests whether you understand the assumptions behind each clustering method, how spectral clustering works, and what it costs in practice.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

When would you choose spectral clustering over k-means?

Cover the kinds of data where spectral clustering wins, why it wins there, and the situations where k-means is still the better choice.

What a Strong Answer Covers Guidance

  • The assumption k-means makes about cluster shape, and the data where that assumption fails.
  • How spectral clustering works, step by step.
  • The kinds of input spectral clustering can accept that k-means cannot.
  • The costs and limits of spectral clustering, and when they make k-means the better choice.

Follow-up Questions Guidance

  • How would you choose the number of clusters for spectral clustering?
  • How would you make spectral clustering work on a few million points?
  • After clustering, how would you assign a new point to one of the clusters?
  • How does spectral clustering compare with DBSCAN on the same ring-shaped data?