News for hackers. Stuff that matters.
Re:Show HN: Want something better than k-means? Try BanditPAM by nothrowaways on Wednesday April 05, 2023 @09:28PM (#35462922)
>3) doesn't require the means to be datapoints in the dataset.

I actually thought this was a k means pro :)

Re:Show HN: Want something better than k-means? Try BanditPAM by lqr on Thursday April 06, 2023 @01:48AM (#35464624)
I think the real strength of this method is that it doesn't require the data live in a vector space. Once you give up that structure, you're pretty much locked in to using points from the dataset as the cluster representatives, unless you assume some other structure.
Re:Show HN: Want something better than k-means? Try BanditPAM by motiwari on Friday April 07, 2023 @07:27PM (#35488452)
A strength if you're strictly looking to minimize squared L2 loss from each point to its closest mean -- but for a lot of other applications, it's a weakness! As the other poster mentioned, with KMedoids you can use arbitrary loss functions and cluster exotic objects (not restricted to metrics on a vector space)