Skip to main content

Extend MLflow's functionality

Project description

MLflow Extend

Test Documentation Status version pyversions Code style: black GitHub

Extend MLflow's functionality.

Examples

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

from mlflow_extend import mlflow

with mlflow.start_run():
    # mlflow native APIs
    mlflow.log_param('param', 0)
    mlflow.log_metric('metric', 1.0)

    ##### new APIs mlflow_extend provides #####

    # dict
    mlflow.log_dict({'a': 0}, 'dict.json')

    # numpy array
    mlflow.log_numpy(np.array([0]), 'array.npy')

    # pandas dataframe
    mlflow.log_df(pd.DataFrame({'a': [0]}), 'df.csv')

    # matplotlib figure
    fig, ax = plt.subplots()
    ax.plot([0, 1], [0, 1])
    mlflow.log_figure(fig, 'figure.png')

    # confusion matrix
    mlflow.log_confusion_matrix([[1, 2], [3, 4]])

Lint

# Run lint checking with black and flake8.
./dev/lint.sh

Test

# Run all the tests.
./dev/test.sh

# Save figures generated during the tests to ".pytest_basetemp".
./dev/test.sh --savefig

Build Documentation

cd docs
make html  # or make clean html

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mlflow_extend-0.1.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file mlflow_extend-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mlflow_extend-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for mlflow_extend-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5303f0d2b4c47da9244d16f8145ea4c178ea210238c5999bd9ba509ca840c6ac
MD5 0684162eb50a3ee10458cd4a0d29da91
BLAKE2b-256 0070ad4202675ebbc65a49c99684829a98b09235a111f7e4aa34d4d9a8d64e41

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