How to extract the features of each cluster in the k means clustering?
조회 수: 8 (최근 30일)
이전 댓글 표시
Hi ,
I need to extract the attributes of each cluster obtained from k means clustering. Is there any methods for that? Suggestions are appreciated
댓글 수: 0
답변 (2개)
KSSV
2021년 6월 23일
If idx are the indices obtained from kmeans. You can plot the data using gscatter. Read about it. If A is your data, you can pick the required cluster feaures using.
A1 = A(idx==1,:) ; % this igves features for clister 1
You can use the cluster index and extract what you want.
댓글 수: 0
Walter Roberson
2021년 6월 23일
No. There are an uncountable infinity of possible "features" for any given set of points, even if the set of points is a finite set of points each of which has a finite representation.
A "feature", mathematically, is any deterministic calculation of the inputs that returns a scalar.
If you wanted to take an image and reorder it as a vector and use the bytes as if they were representing a base 256 integer, and you wanted to calculate the median of the prime factors of that integer... then that would be a feature.
Most features are not useful for any kind of data classification purposes, but they are still features.
... The point here being that you asked to extract "the features", as if there were a specific list of "features" for the clusters, but that is not the case.
If you had some specific features in mind, then there might happen to be existing MATLAB functions or File Exchange Contributions to calculate them.
댓글 수: 2
Walter Roberson
2021년 6월 23일
You will need to do research. Perhaps there are papers that describe features that people have found to be useful in such cases. If not, then you will need to start researching lists of features that people have found useful for something and start trying them all and keeping the ones that turn out to be useful.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!