I'm using ClutoClustering, and get the Assignments object after performing cluster().
Calling Assignments.clusters() and Assignments.getSparseCentroids() (and also getCentroids(), I suppose), result in an IndexOutOfBounds error.
This is caused by the fact that for some input vectors, the assigned cluster id is -1, as CLUTO prefers not to assign them to any of the clusters. Please handle those cases...
This issue should be fixed in the latest commit. Items with negative cluster IDs (usually from CLUTO) are not properly handled. Thanks for spotting this.
I'm using ClutoClustering, and get the Assignments object after performing cluster(). Calling Assignments.clusters() and Assignments.getSparseCentroids() (and also getCentroids(), I suppose), result in an IndexOutOfBounds error. This is caused by the fact that for some input vectors, the assigned cluster id is -1, as CLUTO prefers not to assign them to any of the clusters. Please handle those cases...