AI & ML Atlas
Machine LearningalgorithmAnimated walkthrough
OPTICS
Like DBSCAN, but produces an ordering that reveals clusters at every density.
The idea
OPTICS visits points in an order that keeps neighbours together and records each point's reachability distance. Plotting those distances gives a "reachability plot" in which clusters appear as valleys, deep for dense clusters and shallow for sparse ones. One run therefore covers all ε values.
Watch it run
The pipeline lights up one step at a time. Use the controls to pause or step through it.
- 1Compute each point's core distance (distance to its minPts-th neighbour).
- 2Visit points via a priority queue, nearest reachable first.
- 3Record each point's reachability distance.
- 4Plot the reachability in visit order and read valleys as clusters.
1/4
Step by step
- 1Compute each point's core distance (distance to its minPts-th neighbour).
- 2Visit points via a priority queue, nearest reachable first.
- 3Record each point's reachability distance.
- 4Plot the reachability in visit order and read valleys as clusters.
Where it is used
Data with clusters of varying density.
Watch out for
Extracting clusters from the plot needs a rule such as a threshold or a steepness test.