The n_clusters kwarg can be used to discover clusters in your dataset. It relies on scikit-learn’s implementation of k-mean clustering to fin clusters, and then labels the points accordingly. You must set the number of clusters yourself.
# Code source: Andrew Heusser
# License: MIT
import hypertools as hyp
import pandas as pd
data=pd.read_csv('sample_data/mushrooms.csv')
hyp.plot(data,'o',n_clusters=10)
Total running time of the script: ( 0 minutes 0.390 seconds)