Closed aflag closed 12 years ago
Thanks for the report @aflag.
@robertlayton can you please have a look?
Will do.
FYI, this code does indeed produce nan on my system as well. Thanks @aflag!
Merge Ready to Go
Fixed by @robertlayton in #962. Thanks :)
Hello, the following code makes silhoutte_score return NaN. That looks like a bug to me. If it's impossible to generate a score, then I expected silhouette_score to raise a meaningful exception instead of returning NaN. The following code prints -nan.
The first matrix I've tried came from a bigger sample of 14k items (and many more features for each sample). I reduced the number of samples to 5 and k to 2 so that it's easier to test. In the original sample silhoutte score would fail if k was greater than 80. On that test it would print nan (instead of -nan),.