如何更改 Databricks "runs" 选项卡跟踪的实验?

How to change experiment being tracked by Databricks "runs" tab?

我正在尝试使用 mlflow databricks 集成,特别是跟踪 API。通常,我可以在笔记本的侧边栏中查看过去的跑步信息,如您所见 here and which I got from the tutorial。但是,我现在想要的是使用多个笔记本将运行发送到同一个实验。此外,我想在每个笔记本中查看所有这些常见运行的结果。为此,我需要更改 "runs" 选项卡跟踪的(默认)实验。

最终,我的问题归结为以下几点:如何设置 "runs" 选项卡跟踪的实验?我试过使用 mlflow.set_tracking_urimlflow.set_experiment(mlflow_experiment_name)

我认为今天这不可能,因为设计选择是将运行选项卡与笔记本实验相关联。来自 docs:

Every Python and R notebook in a Databricks workspace has its own experiment. When you use MLflow in a notebook, it records runs in the notebook experiment.

A notebook experiment shares the same name and ID as its corresponding notebook. The notebook ID is the numerical identifier at the end of a Notebook URL.

您可以独立于笔记本实验创建实验,并从不同来源记录运行。不过,您仍然需要打开跟踪 UI 才能浏览结果。

换句话说,您可以将多个运行从不同的笔记本发送到同一个实验,但现在您无法将多个运行记录到特定笔记本中的 'Runs' 选项卡。