Skip to main content

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.

Metadata

Release files for flown 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flown 0.1.0
File Size Uploaded
flown-0.1.0.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flown 0.1.0
File Interpreter ABI Platform
flown-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.6 kB

Release files / flown-0.1.0.tar.gz

Download URL flown-0.1.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0be936566e4fcf18922c3c16c3670d569a10c3f5e85a238932c2b338a01696f7
BLAKE2b-256 checksum
How to use checksums
55bfc639caf2c31d380ca3ea1b43f8318bc57aa6c0da5a024002e7f8c610c654
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / flown-0.1.0-py3-none-any.whl

Download URL flown-0.1.0-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
654c0bfaf258e97f7e557d55ce5920cd967784eff517612b8cb3288cdafdb94f
BLAKE2b-256 checksum
How to use checksums
b61bc4f95e03f2569761bdc6aa5b1a881ca24a052b02f4f00d55d976b99751f3
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.13

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page