Skip to main content

MLflow: An ML Workflow Tool

Project description

Note: The current version of MLflow is an alpha release. This means that APIs and data formats are subject to change!

Note 2: We do not currently support running MLflow on Windows. Despite this, we would appreciate any contributions to make MLflow work better on Windows.

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.

Community

To discuss MLflow or get help, please subscribe to our mailing list (mlflow-users@googlegroups.com) or join us on Slack at https://tinyurl.com/mlflow-slack.

To report bugs, please use GitHub issues.

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 Tracking API, which logs tracking data in ./mlruns. This 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:mlflow/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/quickstart/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 to MLflow. Please see our contribution guide for details.

Project details


Release history Release notifications | RSS feed

This version

0.4.1

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.4.1.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

mlflow-0.4.1-py3-none-any.whl (4.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlflow-0.4.1.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for mlflow-0.4.1.tar.gz
Algorithm Hash digest
SHA256 dad457f574968c4a6465336ccd465756e253bb9a10a7e25667daff8cc2873141
MD5 2ee71c20ced9857aa57b1bbe386ccba3
BLAKE2b-256 ed4838a32c9797ca90f73311358e11b627c7a2a60ddb3f1b26bb4fc8817d4c95

See more details on using hashes here.

File details

Details for the file mlflow-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: mlflow-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for mlflow-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 805c7d21f8ab68fc9637b39a1e0d8457f0549a0acdf4de6e8a93fc6030512d68
MD5 40e89ff04bb462b09a90d4597bf76684
BLAKE2b-256 cb16ee000343200e35de68707d42fff02a0ac63cab1d1f8f27eb868b7ae1a291

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