MLflow:无效的\u参数\u值:不支持的URI。/mlruns'用于模型注册表存储

2024-10-01 15:42:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我在尝试在模型注册表中注册模型时遇到此错误。有人能帮我吗

RestException: INVALID_PARAMETER_VALUE: Unsupported URI './mlruns' for model registry store. 
Supported schemes are: ['postgresql', 'mysql', 'sqlite', 'mssql']. 
See https://www.mlflow.org/docs/latest/tracking.html#storage for how to setup a compatible server.

Tags: store模型formodelparametervalue注册表错误
1条回答
网友
1楼 · 发布于 2024-10-01 15:42:21

Mlflow需要DB作为模型注册表的数据存储 所以,您必须使用DB作为后端存储运行跟踪服务器,并将模型记录到此跟踪服务器。 使用DB的最简单方法是使用SQLite

mlflow server \
     backend-store-uri sqlite:///mlflow.db \
     default-artifact-root ./artifacts \
     host 0.0.0.0

并将MLFLOW_TRACKING_URI环境变量设置为http://localhost:5000

mlflow.set_tracking_uri("http://localhost:5000")

到达后http://localhost:5000 您可以从UI或代码注册记录的模型

相关问题 更多 >

    热门问题