Machine Learning, Clustering, Python, Unsupervised Learning, Segmentation.
use MeanShift class from sklearn . It provides a way to perform clustering of data using a flat kernel based on the mean shift algorithm. class sklearn.cluster.MeanShift(*, bandwidth=None, seeds=None, bin_seeding=False, min_bin_freq=1, cluster_all=True, n_jobs=None, max_iter=300) Parameters: