Skip to main content

MLSpec helper library to making using metadata in ML workflows easier

Project description

ML Spec Library

The purpose of MLSpec Lib is to provide a library that can easily read and write schema-tized metadata related to the steps in an ML Pipeline.

The original set of schema was drawn from here - - as a set of illustrative data for initial specs.

If you had a sample pipeline that did the following:

  • Read data
  • Transformed the data in some way and saved it to a new directory
  • Trained a model based on the data
  • Wrote the results of the training to a new directory
  • Converted the model to a training format
  • Created a serving endpoint for the model

At each step, you would want to use first class python objects to drive the workflow, and, ideally, you would want to read/write metadata about what you were doing to have a permenant record.

This is what MLSpecLib is designed to do:

  • Read the metadata in
  • Provide a first class Python object for use
  • Allow validation of the Python object according to a schema
  • Write the object to disk in a readable YAML format

To see it in action, go to the Sample Notebook.

*** NOTE: The Sample Notebook is illustrative only! It does not actually execute any actual training and the schema are just for examples. ***

  • Getting Started *
# Go into the directory and install all packages
pip3 install -r requirements.txt

# Change into the notebook directory and install jupyter
pip3 install jupyter

# Start a notebook server
jupyter notebook

Now go to the URL that jupyter gives you, and run through the Sample Notebook. It should provide examples of how to read and write full objects from disk using native feeling Python.

TODO:

  • Support better typing / flexibility in lists (including allowed)
  • Real world examples of usage - more notebooks

Library structure and tools are derived from the work of Kenneth Reitz:

  • Learn more <http://www.kennethreitz.org/essays/repository-structure-and-python>_.
  • If you want to learn more about setup.py files, check out this repository <https://github.com/kennethreitz/setup.py>_.

Project details


Download files

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

Source Distribution

mlspeclib-1.1.3.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

mlspeclib-1.1.3-py3-none-any.whl (46.3 kB view details)

Uploaded Python 3

File details

Details for the file mlspeclib-1.1.3.tar.gz.

File metadata

  • Download URL: mlspeclib-1.1.3.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for mlspeclib-1.1.3.tar.gz
Algorithm Hash digest
SHA256 cff6bba9e91b5b34ad91f9f2b918ec3bb5adac8cae02766370b2bc5f04170154
MD5 80b330c50b12404de9c89816715ff1ea
BLAKE2b-256 8474ba60c65082d1035414dc1c6efb14bc4d549db4c2b2a4b6b00e4deff12709

See more details on using hashes here.

File details

Details for the file mlspeclib-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: mlspeclib-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 46.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for mlspeclib-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7d81ee4eaf0f869c03c5406b2e1a0eb7e88d71908ef57d6b32c3047a6704118c
MD5 f9ba783946063788154ffb50052539b1
BLAKE2b-256 2dfd98e17a89bc88e1d59ddb61cb406ba7da0d185c128126c4ef575cbb05628b

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