'How can I put cluster labels in the Gaussian Mixture Model (GMM)?

I used GMM to cluster my data. It has 3 dimensions with 3 clusters. The GMM ran very well, and I got the mean and covariance matrix for each cluster.

The problem is I don't know which label belongs to which cluster. In addition, the cluster labels changed whenever I ran the iteration.

For example, in the first iteration, the cluster labels were 0, 1 and 2. In the second iteration, the cluster labels were 2,1 and 0, etc.

Can I fix the cluster labels? If yes, how do I do it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source