Skip to main content

Gaussian Mixture Regression

Project description

Travis Code Health

Gaussian Mixture Models (GMMs) for clustering and regression in Python.

Source code repository: https://github.com/AlexanderFabisch/gmr

https://raw.githubusercontent.com/AlexanderFabisch/gmr/master/gmr.png

Example

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)

How Does It Compare to scikit-learn?

There is an implementation of Gaussian Mixture Models for clustering in scikit-learn as well. Regression could not be easily integrated in the interface of sklearn. That is the reason why I put the code in a separate repository.

Installation

Install from PyPI:

sudo pip install gmr

or from source:

sudo python setup.py install

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gmr, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size gmr-1.2.tar.gz (8.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page