summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 07:46:12 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 07:46:12 +0000
commitfe0f38ad16b6812d974e49755cd1ba56a5651322 (patch)
treee213df042431f41d36bb4bb83156497a15d1a5e6
parent08b474bd2156a9396cb07503dea216d285ad7252 (diff)
automatic import of python-mlflow-extendopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-mlflow-extend.spec301
-rw-r--r--sources1
3 files changed, 303 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..18fe00c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mlflow-extend-0.1.6.tar.gz
diff --git a/python-mlflow-extend.spec b/python-mlflow-extend.spec
new file mode 100644
index 0000000..016111c
--- /dev/null
+++ b/python-mlflow-extend.spec
@@ -0,0 +1,301 @@
+%global _empty_manifest_terminate_build 0
+Name: python-mlflow-extend
+Version: 0.1.6
+Release: 1
+Summary: Extend MLflow's functionality
+License: MIT License
+URL: https://github.com/harupy/mlflow-extend
+Source0: https://mirrors.aliyun.com/pypi/web/packages/20/8d/168d5fc922e788d2f2ad92719eb391d276a15f8ce86c07832d259e83fbc0/mlflow-extend-0.1.6.tar.gz
+BuildArch: noarch
+
+Requires: python3-pandas
+Requires: python3-pyarrow
+Requires: python3-numpy
+Requires: python3-matplotlib
+Requires: python3-seaborn
+Requires: python3-mlflow
+Requires: python3-plotly
+
+%description
+# MLflow Extend
+
+[![Documentation Status](https://readthedocs.org/projects/mlflow-extend/badge/?version=latest)](https://mlflow-extend.readthedocs.io/en/latest/?badge=latest)
+[![CI](https://github.com/harupy/mlflow-extend/workflows/CI/badge.svg?event=push)](https://github.com/harupy/mlflow-extend/actions?query=workflow%3ACI)
+[![codecov](https://codecov.io/gh/harupy/mlflow-extend/branch/master/graph/badge.svg)](https://codecov.io/gh/harupy/mlflow-extend)
+[![Total alerts](https://img.shields.io/lgtm/alerts/g/harupy/mlflow-extend.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/harupy/mlflow-extend/alerts/)
+[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/harupy/mlflow-extend.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/harupy/mlflow-extend/context:python)
+[![version](https://img.shields.io/pypi/v/mlflow-extend?color=brightgreen)](https://pypi.org/project/mlflow-extend/)
+![pyversions](https://img.shields.io/pypi/pyversions/mlflow-extend?color=brightgreen)
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
+![GitHub](https://img.shields.io/github/license/harupy/mlflow-extend?color=brightgreen)
+
+Extend MLflow's functionality.
+
+## Installation
+
+From PyPI
+
+```bash
+pip install mlflow-extend
+```
+
+From GitHub (development version)
+
+```
+pip install git+https://github.com/harupy/mlflow-extend.git
+```
+
+## Example
+
+```python
+import numpy as np
+import pandas as pd
+import matplotlib.pyplot as plt
+from plotly import graph_objects as go
+
+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 #####
+
+ # flatten dict
+ mlflow.log_params_flatten({"a": {"b": 0}})
+ mlflow.log_metrics_flatten({"a": {"b": 0.0}})
+
+ # 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')
+
+ # plotly figure
+ fig = go.Figure(data=[go.Bar(x=[1, 2, 3], y=[1, 3, 2])])
+ mlflow.log_figure(fig, 'figure.html')
+
+ # confusion matrix
+ mlflow.log_confusion_matrix([[1, 2], [3, 4]])
+
+ # run "mlflow ui" and see the result.
+```
+
+
+
+
+%package -n python3-mlflow-extend
+Summary: Extend MLflow's functionality
+Provides: python-mlflow-extend
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-mlflow-extend
+# MLflow Extend
+
+[![Documentation Status](https://readthedocs.org/projects/mlflow-extend/badge/?version=latest)](https://mlflow-extend.readthedocs.io/en/latest/?badge=latest)
+[![CI](https://github.com/harupy/mlflow-extend/workflows/CI/badge.svg?event=push)](https://github.com/harupy/mlflow-extend/actions?query=workflow%3ACI)
+[![codecov](https://codecov.io/gh/harupy/mlflow-extend/branch/master/graph/badge.svg)](https://codecov.io/gh/harupy/mlflow-extend)
+[![Total alerts](https://img.shields.io/lgtm/alerts/g/harupy/mlflow-extend.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/harupy/mlflow-extend/alerts/)
+[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/harupy/mlflow-extend.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/harupy/mlflow-extend/context:python)
+[![version](https://img.shields.io/pypi/v/mlflow-extend?color=brightgreen)](https://pypi.org/project/mlflow-extend/)
+![pyversions](https://img.shields.io/pypi/pyversions/mlflow-extend?color=brightgreen)
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
+![GitHub](https://img.shields.io/github/license/harupy/mlflow-extend?color=brightgreen)
+
+Extend MLflow's functionality.
+
+## Installation
+
+From PyPI
+
+```bash
+pip install mlflow-extend
+```
+
+From GitHub (development version)
+
+```
+pip install git+https://github.com/harupy/mlflow-extend.git
+```
+
+## Example
+
+```python
+import numpy as np
+import pandas as pd
+import matplotlib.pyplot as plt
+from plotly import graph_objects as go
+
+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 #####
+
+ # flatten dict
+ mlflow.log_params_flatten({"a": {"b": 0}})
+ mlflow.log_metrics_flatten({"a": {"b": 0.0}})
+
+ # 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')
+
+ # plotly figure
+ fig = go.Figure(data=[go.Bar(x=[1, 2, 3], y=[1, 3, 2])])
+ mlflow.log_figure(fig, 'figure.html')
+
+ # confusion matrix
+ mlflow.log_confusion_matrix([[1, 2], [3, 4]])
+
+ # run "mlflow ui" and see the result.
+```
+
+
+
+
+%package help
+Summary: Development documents and examples for mlflow-extend
+Provides: python3-mlflow-extend-doc
+%description help
+# MLflow Extend
+
+[![Documentation Status](https://readthedocs.org/projects/mlflow-extend/badge/?version=latest)](https://mlflow-extend.readthedocs.io/en/latest/?badge=latest)
+[![CI](https://github.com/harupy/mlflow-extend/workflows/CI/badge.svg?event=push)](https://github.com/harupy/mlflow-extend/actions?query=workflow%3ACI)
+[![codecov](https://codecov.io/gh/harupy/mlflow-extend/branch/master/graph/badge.svg)](https://codecov.io/gh/harupy/mlflow-extend)
+[![Total alerts](https://img.shields.io/lgtm/alerts/g/harupy/mlflow-extend.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/harupy/mlflow-extend/alerts/)
+[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/harupy/mlflow-extend.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/harupy/mlflow-extend/context:python)
+[![version](https://img.shields.io/pypi/v/mlflow-extend?color=brightgreen)](https://pypi.org/project/mlflow-extend/)
+![pyversions](https://img.shields.io/pypi/pyversions/mlflow-extend?color=brightgreen)
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
+![GitHub](https://img.shields.io/github/license/harupy/mlflow-extend?color=brightgreen)
+
+Extend MLflow's functionality.
+
+## Installation
+
+From PyPI
+
+```bash
+pip install mlflow-extend
+```
+
+From GitHub (development version)
+
+```
+pip install git+https://github.com/harupy/mlflow-extend.git
+```
+
+## Example
+
+```python
+import numpy as np
+import pandas as pd
+import matplotlib.pyplot as plt
+from plotly import graph_objects as go
+
+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 #####
+
+ # flatten dict
+ mlflow.log_params_flatten({"a": {"b": 0}})
+ mlflow.log_metrics_flatten({"a": {"b": 0.0}})
+
+ # 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')
+
+ # plotly figure
+ fig = go.Figure(data=[go.Bar(x=[1, 2, 3], y=[1, 3, 2])])
+ mlflow.log_figure(fig, 'figure.html')
+
+ # confusion matrix
+ mlflow.log_confusion_matrix([[1, 2], [3, 4]])
+
+ # run "mlflow ui" and see the result.
+```
+
+
+
+
+%prep
+%autosetup -n mlflow-extend-0.1.6
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-mlflow-extend -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..e8079b2
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+48cd7cca21ac62d369fe032425761995 mlflow-extend-0.1.6.tar.gz