Metadata-Version: 2.1
Name: mlflow-baidubce-store-plugin
Version: 1.0.7
Summary: A MLflow plugin that allows users to use Baidu BCE BOS as the artifact store for MLflow.
Home-page: https://github.com/arcosx/mlflow-baidubcestore
Author: arcosx
Author-email: arcosx@outlook.com
License: Apache License 2.0
Description-Content-Type: text/markdown
License-File: LICENSE

# mlflow-baidubce-store-plugin
A **[MLflow](https://github.com/mlflow/mlflow) plugin** that allows users to use [Baidu](https://www.baidu.com/) BCE BOS([CN](https://cloud.baidu.com/doc/BOS/index.html)/[EN](https://intl.cloud.baidu.com/product/bos.html)) as the artifact store for MLflow.

## Example

```shell
pip install mlflow-baidubce-store-plugin -U
```
```python
import mlflow.pyfunc
import os

os.environ["MLFLOW_BOS_ENDPOINT"] = "bj.bcebos.com"
os.environ["MLFLOW_BOS_SECRET_ACCESS_KEY"] = "AK"
os.environ["MLFLOW_BOS_KEY_ID"] = "SK"

class Mod(mlflow.pyfunc.PythonModel):
    def predict(self, ctx, inp):
        return 8765


exp_name = "bos-exp"
mlflow.create_experiment(exp_name, artifact_location="bos://mlflow-test/")
mlflow.set_experiment(exp_name)
mlflow.pyfunc.log_model('model_test', python_model=Mod())
print(mlflow.get_artifact_uri())
mlflow.artifacts.download_artifacts(mlflow.get_artifact_uri())
```
