Module lessons (3/5)
Hierarchical clustering and DBSCAN
Dendrograms, density-based clusters, epsilon neighbourhoods and noise points.
What you'll learn in this lesson
- Contrast centroid-based clustering with hierarchical and density-based approaches.
- Interpret dendrograms and agglomerative linkage methods.
- Tune DBSCAN hyperparameters (
eps,min_samples) and isolate noise points.
Overview
k-means is fast and intuitive, but it has two rigid assumptions: clusters must be roughly spherical, and every single point must be assigned to some cluster.
In real data, clusters often curve (like GPS tracks along a winding road, or interlocking shapes like half-moons) and are surrounded by random noise or outliers. Two alternative clustering paradigms solve these challenges: Hierarchical Clustering and DBSCAN.
Sections covered in this lesson
- 1When spherical clusters fail
- 2Comparing clustering paradigms
- 3Agglomerative hierarchical clustering
- 4DBSCAN: density-based spatial clustering
- 5Try it: interactive density & epsilon lab
- 6Progressive examples: hierarchical merges and DBSCAN densities
Unlock "Hierarchical clustering and DBSCAN" and the full Machine Learning: from first principles to practice curriculum
Dendrograms, density-based clusters, epsilon neighbourhoods and noise points.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.