Need help on FCM clustering
이전 댓글 표시
Is any one knows how to create 5 clusters by using FCM please. I've number of samples across number of genes, I need to cluster them into 5 clusters but I couldn't figure this out in matlab.
답변 (5개)
Walter Roberson
2011년 11월 26일
fcm(YourData, 5)
Each row of YourData should be a single sample.
댓글 수: 17
Aiman Almazroey
2011년 11월 26일
Walter Roberson
2011년 11월 26일
Just pass your 306 x 249 array as the first argument to fcm, and pass 5 as the second argument. Have a look at that documentation link: the second argument is explicitly the number of clusters to return.
Aiman Almazroey
2011년 11월 26일
Walter Roberson
2011년 11월 27일
Unfortunately the size and interpretation of the partition matrix is not documented in the reference, and I do not have that toolbox to experiment with. For your data, what does size(U) come out as?
Aiman Almazroey
2011년 11월 27일
Aiman Almazroey
2011년 11월 27일
Walter Roberson
2011년 11월 27일
For your data, what does size(U) come out as?
Sending me the files will not help as I do not have that toolbox.
I have some suspicions about what would be needed, but I need that information to confirm or disprove it.
Also note that you will not be able to plot the centroid of data with more than 3 dimensions, as the centroids would be 4 or higher dimensional.
Aiman Almazroey
2011년 11월 27일
Walter Roberson
2011년 11월 27일
Okay, that shape of U is consistent with what I expected.
numclust = size(U,1);
centroids = zeros(size(U));
maxU = max(U);
for K = 1 : numclust
index = find(U(K,:) == maxU,1); %only take one in case multiple
centroids(K,:) = U(index,:);
end
From there you have the problem of plotting the point in 306 dimensions, at centroids(K,:) for cluster #K. Plotting in more than 3 dimensions is... ummm, not encouraged... by MATLAB.
Aiman Almazroey
2011년 11월 27일
Aiman Almazroey
2011년 11월 28일
Walter Roberson
2011년 11월 28일
It appears it is domestic duties day for me today.
Aiman Almazroey
2011년 11월 28일
Walter Roberson
2011년 11월 28일
My meaning is that I have been doing housework and grocery shopping and laundry and the like all day, and have not time to work this through. Recall that I do not have this toolbox: I am having to recreate the algorithm and outputs by mental modelling of what calculations might be useful and working out what problems those calculations might run in to.
Aiman Almazroey
2011년 11월 28일
Aiman Almazroey
2011년 11월 28일
Aiman Almazroey
2011년 11월 29일
YASSER
2014년 2월 27일
0 개 추천
hi I have the same your's problem, have you solved it please
댓글 수: 2
Aiman Almazroey
2014년 3월 2일
YASSER
2014년 3월 6일
AFTER I apply FCM function, I don'knowt how to extract images clusters for example I use [center,U,obj_fcn] = fcm(data,3) what I have to do to get the 3 groups of Image
soumi ghosh
2014년 4월 9일
0 개 추천
Hello I have the same issue regarding fcm clusterinf of muti dimensional data set, need some help. Thank You
댓글 수: 1
Tamilalagan Natarajan
2014년 9월 5일
Hi, I am trying to use FCM clustering. The only issue I still have is to identify the cluster center. If you have already found a solution, please can you share it.
nur shidah ahmad
2016년 12월 8일
0 개 추천
Do you have any idea to auto clustering the data? Since, i don't want set the cluster number and i want it to auto cluster.
댓글 수: 1
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.
카테고리
도움말 센터 및 File Exchange에서 Data Clustering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!