How to get optimal number of clusters in data set using fuzzy c means? Please answer this it is very important for my study.

9 ビュー (過去 30 日間)
How to get optimal number of clusters in data set using fuzzy c means? Please answer this it is very important for my study.

回答 (2 件)

Sai Teja G
Sai Teja G 2024 年 1 月 21 日
Hi Mamta,
Based on what I have gathered, you are seeking to determine the optimal number of clusters in your dataset by employing the Fuzzy C-Means algorithm. I recommend going through the documentation provided at the link below to gain a comprehensive understanding of the algorithm:
To ascertain the optimal number of clusters, you may need to adjust the settings in "fcmOptions". For detailed information on which specific option to modify to achieve the optimal cluster count, please refer to the documentation:
Hope it helps!

Walter Roberson
Walter Roberson 2024 年 1 月 21 日
The optimal number of clusters is equal to the number of unique points. When every unique point is the center of its own cluster, the cluster distance is zero.
  3 件のコメント
Walter Roberson
Walter Roberson 2024 年 7 月 5 日
%supposing you have matrix YourData
[Centroids, ~, Cluster_Index] = unique(YourData, 'rows');
Then the optimal number of clusters is
size(Centroids,1)
and the centroids of the clusters are
Centroids
and the cluster numbers are
Cluster_Index
Walter Roberson
Walter Roberson 2024 年 7 月 5 日
If every unique point is assigned to be its own centroid, then the distance from every point to the nearest centroid is identical to 0, and so the total distance over all of the points will be 0 * number_of_unique_points which will be 0. Therefore each unique point being its own centroid is the optimal clustering.
Suppose you have a different "optimal" clustering, one in which not all points are the centers of their own clusters. Then for at least some points, the distance from the point to its centroid will be non-zero. Distance are never negative, so the total distances will be non-zero. That would be worse than the exact zero distance achieved above, and by way of contradiction there cannot be any other "optimal" clustering.
The exception comes if you have some penalty for increasing the number of clusters. For example if you were creating an electrical distribution system in which each centroid corresponded to a distribution station with cost greater than the cost to be a node feeding into the station, then such a system would have a balance that involved having fewer clusters. But the Fuzzy C-means clustering algorithm does not have any way to account for per-cluster penalties, so the Fuzzy C-means clustering algorithm itself is not suitable for finding optimum clusters in the case of per-cluster penalties.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Clustering についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by