필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
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);

채택된 답변

Walter Roberson
Walter Roberson 2016년 12월 8일
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
Walter Roberson
Walter Roberson 2016년 12월 9일
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.
nur shidah ahmad
nur shidah ahmad 2016년 12월 9일
Fantastic. Thank you very much. I will try it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Clustering에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by