Skip to main content

MLflow: An ML Workflow Tool

Project description

The current version of MLflow is an alpha release. This means that APIs and storage formats are subject to breaking change.

Installing

Install MLflow from PyPi via pip install mlflow

MLflow requires conda to be on the PATH for the projects feature.

Documentation

Official documentation for MLflow can be found at https://mlflow.org/docs/latest/index.html.

Running a Sample App With the Tracking API

The programs in example use the MLflow Tracking API. For instance, run:

python example/quickstart/test.py

This program will use MLflow log API, which stores tracking data in ./mlruns, which can then be viewed with the Tracking UI.

Launching the Tracking UI

The MLflow Tracking UI will show runs logged in ./mlruns at http://localhost:5000. Start it with:

mlflow ui

Running a Project from a URI

The mlflow run command lets you run a project packaged with a MLproject file from a local path or a Git URI:

mlflow run example/tutorial -P alpha=0.4

mlflow run git@github.com:databricks/mlflow-example.git -P alpha=0.4

See example/tutorial for a sample project with an MLproject file.

Saving and Serving Models

To illustrate managing models, the mlflow.sklearn package can log Scikit-learn models as MLflow artifacts and then load them again for serving. There is an example training application in example/quickstart/test_sklearn.py that you can run as follows:

$ python example/test_sklearn.py
Score: 0.666
Model saved in run <run-id>

$ mlflow sklearn serve -r <run-id> model

$ curl -d '[{"x": 1}, {"x": -1}]' -H 'Content-Type: application/json' -X POST localhost:5000/invocations

Contributing

We happily welcome contributions, please see our contribution guide for details.

Project details


Release history Release notifications | RSS feed

This version

0.1.0

Download files

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

Source Distribution

mlflow-0.1.0.tar.gz (4.3 MB view details)

Uploaded Source

Built Distribution

mlflow-0.1.0-py2-none-any.whl (6.7 MB view details)

Uploaded Python 2

File details

Details for the file mlflow-0.1.0.tar.gz.

File metadata

  • Download URL: mlflow-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mlflow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c82e583a5cef3832d77b4fdb4ee56fd35226632997dcaee40903d226f00bb6ac
MD5 7dd8fa2da6b3b07cc52083462ca590ce
BLAKE2b-256 e8b3cf358e182be34a62fcd6843e5df793f278bd9d24f78f565509cb927c6a22

See more details on using hashes here.

File details

Details for the file mlflow-0.1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for mlflow-0.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 311d0c39bc76b6ea3de395751b1f6ea7c87fd0707caed6c14aaf0bf0f92b0b72
MD5 f66d3b49c5e99412b04c3855e1865bb3
BLAKE2b-256 2b64ee2eb0a95b8da4e029e9c2e2e219c364d0e40c3b14a3fa937bb0244fc9c2

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