Skip to main content

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.

Metadata

Release files for mg 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for mg 0.0.2
File Interpreter ABI Platform Actions
mg-0.0.2-py3-none-any.whl Python 3 none any Details for mg-0.0.2-py3-none-any.whl

Release files / mg-0.0.2-py3-none-any.whl

Download URL mg-0.0.2-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e574854f3f339b69e2b8d3f7fa0e8bf430e7f3f96f38e3abf30e6de01e769e5
BLAKE2b-256 checksum
How to use checksums
f3c41315c0b2fe75f2d74aebd88fb20b9243b21446dd7f1e29d5ed4cfa2315bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.7.9 Darwin/20.2.0

Security for mg 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page