2

我使用 mlflow 版本 1.2.0 使用以下命令运行 mlflow 服务器

mlflow server --host myhost -p myport --backend-store-uri mysql://user@localhost/mlflow --default-artifact-root hdfs://myhost/user/myid/mlflow_test

我从 MLflow 教程快速入门https://www.mlflow.org/docs/latest/quickstart.html运行实验

命令:

mlflow run sklearn_elasticnet_wine -P alpha=0.5 --no-conda

记录模型的代码是

mlflow.sklearn.log_model(lr, "model")

https://github.com/mlflow/mlflow/blob/master/examples/sklearn_elasticnet_wine/train.py

我通过 webbrowser myhost: myport 访问服务器并检查我运行的运行。

我成功获取了 myhost 的运行信息:myport/#/experiments/0/runs/run_id

在这个页面中,我发现第一层(模型目录)路径是正确的。也就是说,run_id/artifacts/model 正确的路径

但是一旦我单击模型文件夹下的 MLmodel 文件,路径就会出错:我希望看到 run_id/artifacts/model/MLmodel 但实际上它是 run_id/artifacts/MLmodel 错误的路径

4

0 回答 0