fuzzy-c-means
fuzzy-c-means copied to clipboard
Error when using more than 100 clusters
Hello,
I am trying to perform clustering with 300 clusters but I am getting an error. Is it possible to increase the maximum number of clusters?
Thank you, Shahvaiz Hanif
Hi @shahvaiz. Thank you for being interested in the fuzzy-c-means library.
To modify the maximum limit on the number of clusters, you can define it after creating the fcm object.
Try to use the following snippet before model fit:
fcm = FCM()
fcm.n_clusters = 300
I hope it helps you.
Note: Be careful when using Fuzzy C-means algorithm in high dimensions. In these cases, the distances become very similar, which compromises the fit of the model. For more details check this paper.
I'm closing the issue due to lack of activity. It can be reopened at any time.