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 details)

Uploaded Python 3

File details

Details for the file mg-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: mg-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.7.9 Darwin/20.2.0

File hashes

Hashes for mg-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8e574854f3f339b69e2b8d3f7fa0e8bf430e7f3f96f38e3abf30e6de01e769e5
MD5 aa2a3c3c6151923662948247734390ea
BLAKE2b-256 f3c41315c0b2fe75f2d74aebd88fb20b9243b21446dd7f1e29d5ed4cfa2315bf

See more details on using hashes here.

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