What?

Points climb to the nearest hill.

Points climb to the nearest hill.

Points climb to the nearest hill.

Points climb to the nearest hill.

When?

Pros & Cons

Code?

from sklearn.cluster import MeanShift
clustering = MeanShift(bandwidth=2).fit(X)
clustering.fit(X)
clustering.predict(X)
# or
clustering.fit_predict(X)

Components:

Usage example