Skip to main content

Extend MLflow API

Project description

MLflow Extend

Test Documentation Status 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():
    # 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')

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

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

mlflow-extend-0.1.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

mlflow_extend-0.1.0-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

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