fozziethebeat / S-Space

The S-Space repsitory, from the AIrhead-Research group
GNU General Public License v2.0
203 stars 106 forks source link

Cluto cluster assignments #48

Closed hazai closed 10 years ago

hazai commented 10 years ago

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...

davidjurgens commented 10 years ago

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.