Closed pcmoen closed 8 years ago
Fixed. What was happening is that each point was duplicated. You requested 10 seeds but there was not that many unique points. That edge case had not been handled or even how it should behave defined. That's all been fixed SNAPSHOT of ddogleg. Thanks for reporting.
Thanks for your great libraries BoofCV and DDogleg!
The seeding of KMeans clusters using the KMeans ++ initializer will given certain data set throw a RuntimeException with the message "This shouldn't happen".
This will happens on various sized data sets. I guess this is more prevalent on small data sets. My data points are from the SIFT descriptor in BoofCV.
The code example KMeansFailsSeeding.txt will trigger this exception.
The following is the stack trace of the exception.