Azzera filtri
Azzera filtri

AUTO CLUSTERING instead of setting the value of 'C' in Fuzzy C-Mean

2 visualizzazioni (ultimi 30 giorni)
I have a problem in FCM. i want it to be AUTO CLUSTERING instead of setting the value of 'C'?. This is a normal FCM code that need manually set the C: options = [NaN 100 0.001 0]; [centers,U,objFun] = fcm(data,3,options);

Risposta accettata

Walter Roberson
Walter Roberson il 8 Dic 2016
Yes, I know exactly how to get the best possible results in that situation: set the number of clusters to the number of unique points. Every cluster will then contain exactly one point (and any duplicates of it), which will always give you the best possible fitting, with no fitting error at all.
  3 Commenti
Walter Roberson
Walter Roberson il 9 Dic 2016
The following does the best possible clustering without specifying the number of clusters in advance:
[cluster_centers, ~, cluster_idx] = unique(YourInputMatrix, 'rows');
That is the entire code. Every unique row becomes its own cluster.
The error in cluster assignment is provably 0.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Data Clustering in Help Center e File Exchange

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by