Gaussian Mixture Model cluster order
2 views (last 30 days)
Show older comments
Hello,
I am using Gaussian Mixture Model to separate my data into 2 clusters, let's say "high" and "low". I have different files. It says here that "If you cluster several fitted gmdistribution models, cluster can assign different cluster labels for similar components.". My question is: Is there a way to always get Cluster1 to be "high" and Cluster2 to be "low", for all the data? In other words, how can I get similar cluster labels for similar components?
Thanks!
0 Comments
Accepted Answer
the cyclist
on 18 Mar 2021
I think you'll need a bit of programming to do that. Specifically, fitgmdist will output a model object, and the model object will have the gaussian means as properties. You'll need to find which one is larger, and label your clusters accordingly. I don't think you can rely on MATLAB to report the means in a particular order.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!