# Clustering (unsupervised learning) for uneven classes

I am looking for an unsupervised method that can see also the points that start to look different from the majority. Which clustering techniques (I use python) can be used for such data sets?

I have tried k-means but as I was expecting it has failed considerably to see such peaks.

• Have not tried it myself, but this python package has just released github.com/beringresearch/ivis, for both supervised and unsupervised! Jul 30 '19 at 21:13
• I would not consider that to be a cluster. The values are very much spread out. Maybe you should consider anomaly detection instead? Jul 31 '19 at 6:32

You can try with DBSCAN. It's a clustering algorithm that is meant to isolate outliers. You can read more about it here. It's already available in sklearn (documentation here).