gpt4 book ai didi

python - 在 mlflow 中搜索运行时收到错误请求

转载 作者:行者123 更新时间:2023-12-03 06:52:05 24 4
gpt4 key购买 nike

在 Azure 环境中使用 mlflow 训练机器学习模型。

import mlflow
from mlflow import MlflowClient
from azureml.core import Experiment, Workspace

experiment_name = 'housing-lin-mlflow'

experiment = Experiment(ws, experiment_name)

runs = mlflow.search_runs(experiment_ids=[ experiment.id ])

从 search_runs 获取运行时出现此错误:

RestException: BAD_REQUEST: For input string: "5b649b3c-3b8f-497a-bb4f"

MLflow版本:1.28.0在 Azure 工作室中作业已创建并成功运行。

最佳答案

成功运行作业后 MLFlow 中的错误请求是因为没有为应用程序提供适当的 API 权限。

enter image description here

搜索MLFLOW

enter image description here

向下滚动

enter image description here

点击“查看 API 权限”

enter image description here

在API权限下,根据应用程序运行区域和需求分配权限。查看document欲了解更多信息。

关于python - 在 mlflow 中搜索运行时收到错误请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73501103/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com