Data Science, Artificial Intelligence, Machine Learning, Python, Programming.
(Image by Author) Because KMeans works best for spherical clusters, it works only for Dataset C. However, it fails to cluster all other datasets (non-spherical) correctly. Except for Dataset D, both OPTICS and DBSCAN perform well on all the datasets. However, with Dataset D, OPTICS fails to