News for hackers. Stuff that matters.
Re:E-means: 10x faster k-means at equal loss by nighthawk454 on Monday November 09, 2026 @10:38PM (#50435768)
The 'Elbow method' [1], yeah. Sweep a bunch of different k values and pick the one where your target metric starts having diminishing returns. There's still not a particularly great way to pick k for this type of clustering.

There kind of can't be as clustering is sort of inherently subjective. Other methods like HDBSCAN can find the number of clusters themselves. There's still a 'one key parameter' you have to pick yourself, but it can be more intuitive and less sensitive for some datasets, when you dont' know how many clusters there are / how many you want.

Sometimes, picking k exactly is useful for practical reasons too. Like bounding the size of your codebook. Or partitioning a dataset into k equal-ish pieces, say to spread across a pool of servers of a known/fixed size.

[1] https://en.wikipedia.org/wiki/Elbow_method_(clustering)

Re:E-means: 10x faster k-means at equal loss by senderista on Monday November 09, 2026 @10:52PM (#50435843)
Yeah, I guess you can't really avoid picking k without hierarchical clustering.
Re:E-means: 10x faster k-means at equal loss by nighthawk454 on Monday November 09, 2026 @11:03PM (#50435916)
Yeah, it's not a well-defined problem, so there's no one true solution. Then only question left is "well what do you want?". Always have to pick something.

https://en.wikipedia.org/wiki/Cluster_analysis#Definition