Skip to main content

Machine Learning Extensions

Project description

MG is an extension package for Machine Learning. Currently wraps vfi and dagging packages.

How to use MG

The mg package inherits from sklearn classes, and thus drops in neatly next to other sklearn classifiers with an identical calling API. Similarly it supports input in a variety of formats: an array (or pandas dataframe) of shape (num_samples x num_features).

import mg
from sklearn.datasets import load_iris

data, target = load_iris(return_X_y=True)

model = mg.VFI()
model.fit(data, target)

Installing

PyPI install, presuming you have an up to date pip:

pip install mg

If pip is having difficulties pulling the dependencies then we'd suggest to first upgrade pip to at least version 10 and try again:

pip install --upgrade pip
pip install mg

Otherwise install the dependencies manually using anaconda followed by pulling mg from pip:

conda install numpy scipy
conda install scikit-learn
pip install mg

Running the Tests

The package tests can be run after installation using the command:

pytest mg --cov

Python Version

The mg package supports only Python 3.

Contributing

We welcome contributions in any form! Assistance with documentation, particularly expanding tutorials, is always welcome.

Licensing

The mg package is MIT licensed. Enjoy.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mg-0.0.2-py3-none-any.whl (1.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page