Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Clustering

What is clustering?

Grouping unlabelled data so that similar items end up together. The k-means method alternates between assigning each point to its nearest centre and moving each centre to the mean of its points.

Where it is taught

Clustering. Finding groups in data when nobody has labelled anything. The k-means method needs two steps, repeated, and both are things you already know.

What the lesson leaves you with

  • k-means alternates two steps: assign each point to its nearest centre, then move each centre to the mean of its points.
  • Each step can only lower the total squared distance, so the method always settles.
  • The result depends on the starting centres and on your choice of kkk.
Open the lesson

Questions

What is clustering?
Grouping unlabelled data so that similar items end up together. The k-means method alternates between assigning each point to its nearest centre and moving each centre to the mean of its points.
Where is clustering used in AI?
Finding groups in data when nobody has labelled anything. The k-means method needs two steps, repeated, and both are things you already know.
What is the key idea to remember about clustering?
k-means alternates two steps: assign each point to its nearest centre, then move each centre to the mean of its points.
Where can I learn clustering step by step?
In the lesson “Clustering” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.

See it in 3D on the blog

  • What is k-means clustering? Finding groups3 min

Related terms

  • Discount
  • Matrix factorisation
  • Precision and recall
  • Q-value
  • Reinforcement learning
  • Self-supervised learning