fuzzy-c-means icon indicating copy to clipboard operation
fuzzy-c-means copied to clipboard

Error when using more than 100 clusters

Open shahvaiz opened this issue 1 year ago • 1 comments
trafficstars

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

FCM error

shahvaiz avatar Jan 02 '24 22:01 shahvaiz

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.

omadson avatar Jan 03 '24 12:01 omadson

I'm closing the issue due to lack of activity. It can be reopened at any time.

omadson avatar Mar 18 '24 17:03 omadson