scikit-learn/scikit-learn
View on GitHubGMM covariance types examples overly complex / confusing
Open
#10,863 opened on Mar 23, 2018
Documentationhelp wantedmodule:mixture
Description
I don't particularly like the example because it's supervised and uses a train/test split and identification with the original classes. I think it would be better to use a synthetic dataset and just show off the different covariance types.
It also fits the model on 4d data and only shows a 2d projection and that's not super intuitive imho.
Also, the example could be much simplified if we added a "get_covariance" function back to the model. I think we had that in the old GMM. Was there a reason not to add it to the new GMM? In many cases the user wants to be agnostic to the storage format of the covariance matrix, I think.