Gaussian Mixture Models (GMMs) for clustering and regression in Python.
Source code repository: https://github.com/AlexanderFabisch/gmr
Estimate GMM from samples and sample from GMM:
from gmr import GMM gmm = GMM(n_components=3, random_state=random_state) gmm.from_samples(X) X_sampled = gmm.sample(100)
For more details, see:
help(gmr)
Install from PyPI:
sudo pip install gmr
or from source:
sudo python setup.py install