New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ccore.xmeans][pyclustering.cluster.xmeans] Amount of centers and amount of clusters not matched #389
Comments
The number of clusters I get from pyclustering.cluster.xmeans.xmeans.get_centers is always equal to value of kmax and I checked this by getting clusters while iterating kmax for a range of value. Thanks |
Actuallty I cann't share the data but as I have run Kmeans and evaluated its clusters by Silhoutte value for different iteration I can say that at some point number of clusters formed should be less than kmax and I order to verfiy I ran Xmeans by iterating kmax for a range of values. But number of cluster produced is same as kmax value. Thanks |
I verified it using the old version of pyclustering.Then for all the things constant the number of clusters we get is not always equal to kmax. I used the same dataset. Thanks @annoviko |
@himanshu94, previous version (before 0.7) had two bugs (#326, #328) that have been fixed in 0.7:
I will try to verify implementation and add more tests to find out what can be wrong, but without data it's not trivial problem. |
Introduction
Amount of allocated centers is not matched to amount of allocated clusters. This bug wasn't observed in Python part, because centers were calculated by python implementation.
For some tests the similar problem is observed for python implementation:
The text was updated successfully, but these errors were encountered: