How to extract the features of each cluster in the k means clustering?

조회 수: 8 (최근 30일)
MINO GEORGE
MINO GEORGE 2021년 6월 23일
댓글: Walter Roberson 2021년 6월 23일
Hi ,
I need to extract the attributes of each cluster obtained from k means clustering. Is there any methods for that? Suggestions are appreciated

답변 (2개)

KSSV
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.

Walter Roberson
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
MINO GEORGE
MINO GEORGE 2021년 6월 23일
Hi, Thank you for responding. I wanted to segment and extract the features from a particular cluster, which contains the kidney stones. I have no idea about the features that i have to extract. There are 7 clusters in my image and from tat i need the attributes, so That i can perform the classification.
Any help is appreciated
Walter Roberson
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.

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by