How do you use a k-distance graph to select the eps parameter for DBSCAN?
Last updated
Compute each point's distance to its k-th nearest neighbor (k =
min_samples), sort ascending, and plot.Set
epsat the knee where the curve bends sharply up. Points left of it become core, points past it are noise.Scale features first. Multiple knees signal varying densities, where OPTICS or HDBSCAN fit better.