フィルターのクリア

i want coding to choose best cluster

2 ビュー (過去 30 日間)
Seemant Tiwari
Seemant Tiwari 2022 年 1 月 14 日
回答済み: Ninad 2023 年 9 月 29 日
I created 5 cluster, for next step i want to choose best cluster, i am using persistence method and Fuzzy C Means for choose best cluster.
I want coding about this method, if anyone knows please help
Thank you

採用された回答

Ninad
Ninad 2023 年 9 月 29 日
Hi Seemant,
The persistence method combined with Fuzzy C-Means clustering can be used to select the best cluster.
I have written a dummy code to implement the same. The attached file named “bestCluster.mcontains the code.
In this code, I generated sample data using randnand performed Fuzzy C-Means clustering with fcm. The U matrix represents the fuzzy partition, with rows for data points and columns for clusters. The persistence vector is computed by summing squared membership values for each data point.
Then, I sorted the clusters based on the persistence values in descending order. The cluster with the highest persistence is considered the best. Data points belonging to the best cluster are extracted using a membership threshold of 0.5.
Finally, plotted the original data, best cluster, and cluster centers using scatter function.
This is just a dummy code, and you may need to adapt the code to your specific needs and adjust Fuzzy C-Means parameters and threshold as required.
You may review the official documentation related the functions used above:
I hope these steps will help you.
Thanks,
Ninad.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFuzzy Logic Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by