'Generate a GMM Dataset by using multivariate_normal from scipy.stats

How can I use from scipy.stats import multivariate_normal to generate data?

In specific, I want to create a GMM data that contains 3 columns (features) and a label column (0 or 1).

So I am basically looking to see a 3d plot that contains 6 different Gaussians (3 per class).

Thanks a lot!



Sources

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

Source: Stack Overflow

Solution Source