How to use python to generate class labels with a certain probability in classification problems?

How to use python to generate data that obeys a multivariate Gaussian mixture distribution?

Please refer to https://gitee.com/chenglinyu99/generate_number_certain_probability
This is also my warehouse.

Finally, I used matlab to directly adjust the library to generate a multivariate mixed Gaussian distribution.

Guess you like

Origin blog.csdn.net/ChenglinBen/article/details/130788708