Skip to main content

MLSpec helper library makes 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.15.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

mlspeclib-1.1.15-py3-none-any.whl (46.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlspeclib-1.1.15.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.9

File hashes

Hashes for mlspeclib-1.1.15.tar.gz
Algorithm Hash digest
SHA256 cda02b98aed329bddc19d62fc4eb542dc72afa7d5688247e66640ed51ec9a62b
MD5 20f904cded7b324449da39de365732d7
BLAKE2b-256 5c93fca354dc1e26245d879eca031283a5279e4408bef91ade697e510bbaabf2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlspeclib-1.1.15-py3-none-any.whl
  • Upload date:
  • Size: 46.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.9

File hashes

Hashes for mlspeclib-1.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 c809ec9e08f3b2d454756fb3a06786d48bea90fbcb22b3a6071b7f787b59a049
MD5 67532310aa531df096c80e0b29640ce4
BLAKE2b-256 03cce7df497d7d4d5fc984bca7e68c0be877479f32260626235aac4fc5aeece6

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