Closed dswf65411 closed 5 years ago
Hi, Thank you so much for your interest and for raising this issue.
Reading the error, it seems that you actually have at least one cluster empty. I had always assumed that Faiss was dealing with empty clusters without actually checking where they do it in the code... I think I made a confusion with this piece of code from FastText.
So actually the method works without reassigning empty clusters, and I never discovered it because I've never had any.
Note that in the implementation of DeeperCluster I do reassign empty clusters with the following piece of code.
With this fix you shouldn't get the error.
The error occurs at 32nd epoch and run normally before it, I guess maybe Kmeans has assigned an empty cluster so a list become empty?
package version:
2to3
to modify the codes)Please help, thank you!