Skip to main content

Notebook friendly MLflow viewer

Project description

What is this ?

This package provides the following

  • ProjectStore for MLflow
    • This is a tracking store for the project:// scheme. It is the same as the FileStore in mlflow package that can be used in File schema except for the following points.
    • Use uuid instead of "incremental int" when naming new MLflow experiment directory.
      • This makes it possible to store the team's experiments/runs in any code repository.
  • A "Serverless" experiment record viewer for use in rich IPython environments such as Jupyter-Notebook or Jupyterlab.

Usage

Record your experiments on ProjectStore

import mlflow
mlflow.set_tracking_uri('project://./mlruns') # set storage-uri for tracking
experiment_id = mlflow.create_experiment('sample')

with mlflow.start_run(experiment_id=experiment_id) as run:
    mlflow.log_param("p", 1)
    mlflow.log_param("q", 10)
    mlflow.log_param("r", 100)
    mlflow.log_metric('r2', 0.6)

Explore experiments record on your IPython environments

For "rich" IPython environments such as Jupyter-Notebook.

import flown.api as flown_api
flown_api.list_experiments()

For "poor" IPython environments such as Notebook Preview on PyCharm.

import flown.api as flown_api
flown_api.list_experiments(restricted=True)

Note: Any interactive function is disabled on this restricted mode. Any link does not work.

Run MLflow Server with ProjectStore

Using default directory './mlruns'

$ flown ui

Then you can browse your experiment record via MLflow WEB-UI. ( http://127.0.0.1:5000 )

Using other directory.

$ flown ui --backend-store-uri project://./relational/path/to/dir --default-artifact-root s3://your-bucket/prefix-key

Type flown ui --help for farther information.

How to register to PyPI / for my private memo :)

  1. Update version in flown/__version__.py
  2. Upload to pypi.
pip install twine
pip install build
cd src
python -m build 
python -m twine upload --repository pypi --verbose dist/*

License

MIT

Copyright 2021 advtec

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

flown-0.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flown-0.1.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flown-0.1.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.8

File hashes

Hashes for flown-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0be936566e4fcf18922c3c16c3670d569a10c3f5e85a238932c2b338a01696f7
MD5 e9063465edde247cdf4af8e88ccbfd5f
BLAKE2b-256 55bfc639caf2c31d380ca3ea1b43f8318bc57aa6c0da5a024002e7f8c610c654

See more details on using hashes here.

File details

Details for the file flown-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: flown-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.8

File hashes

Hashes for flown-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 654c0bfaf258e97f7e557d55ce5920cd967784eff517612b8cb3288cdafdb94f
MD5 5bc506447e70ece325462bb6817da553
BLAKE2b-256 b61bc4f95e03f2569761bdc6aa5b1a881ca24a052b02f4f00d55d976b99751f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page