clustering.kmeans()
clustering.kmeans(df, n_clusters=3) -> dictReturns the cluster labels and a silhouette score (how well-separated the groups are).
In plain English: Sorts rows into k groups by similarity and tells you how cleanly they separated.
import breezeml
df = breezeml.datasets.iris().drop(columns=["species"])
res = breezeml.clustering.kmeans(df, n_clusters=3)
print("silhouette:", round(res["silhouette"], 3))