繁体   English   中英

MLflow 实验跟踪:本地(开发工具 - vscode)到数据块工作区

[英]MLflow Experiments Tracking : local (dev tools - vscode) to databricks workspace

我已经在本地使用配置了我的数据块工作区,

databricks configure --profile <profile_name> --token

通过它我能够列出集群并创建秘密 scope。

但我无法创建 mlflow 实验。 我已将跟踪 uri 设置为“databricks”,还使用“databricks/<profile_name”进行了测试并进行了测试,但我无法在我的 databricks 工作区上创建或跟踪任何实验。

我收到以下错误;

from mlflow.tracking import MlflowClient client = MlflowClient() mlflow.set_tracking_uri("databricks") experiment = client.get_experiment_by_name('/Shared/test')

MlflowException:API 对端点的请求成功,但响应正文不是有效的 JSON 格式。 响应正文:'<.doctype html><html><head><meta charset="utf-8"/><meta http-equiv="Content-Language" content="en"/><title>Databricks - 签名在</title><meta name="viewport" content="width=960"/><link rel="icon" type="image/png" href="/favicon;ico"/><meta http-equiv ="content-type" content="text/html.charset=UTF8"/><link rel="icon" href="/favicon.ico"><script defer="defer" src="/login/login. 0ceb14c0.js"></script></head><body class="light-mode"><uses-legacy-bootstrap><div id="login-page"></div></uses-legacy-引导程序></body></html>'

有人可以帮我解决我在这里缺少的东西吗?

我期待通过开发工具 (vscode) 在数据块工作区中创建/跟踪 mlflow 实验。

我在尝试从版本不匹配的 model 注册表(客户端 1.22.0)加载 model 时遇到了同样的问题。

我不得不降级客户端版本以使其工作。

首先将客户端降级到 1.21,然后将服务器降级到 1.20

参考 - https://docs.databricks.com/dev-tools/api/latest/mlflow.html#operation/transition-model-version-stage

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM