Extend MLflow's functionality
Project description
MLflow Extend
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
File details
Details for the file mlflow_extend-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: mlflow_extend-0.1.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f40cb5980ef08e4e30359d436b33e5aa8378bc52e78ce20923cd9b3c8c27027a |
|
MD5 | 3922c115303dedcddcc3aab2e3d09e9a |
|
BLAKE2b-256 | 137200161dab372a561cb22f055db0c34112539fdb14ea28033de9cdcb9b0bdb |