MLFlow - How to migrate or copy a run from one experiment to other?

I am trying to move a run in MLflow from one experiment to another. Does anybody know if its possible? If yes, how? (I use Python API)

Upvotes: 7

Views: 6153

Answers (3)

Andre
Andre

Reputation: 354

https://github.com/mlflow/mlflow-export-import

You can copy a run from one experiment to another - either in the same tracking server or between two tracking servers. Caveats apply if they are Databricks MLflow tracking servers.

Upvotes: 4

Sunny Lee
Sunny Lee

Reputation: 51

For local users, I directly move run folders and modify the experiment id in meta.yaml.

To help elaborate, every run has its own folder, which basically contains more folders like "artifacts", "metrics", "params", and "tags", you could find a "meta.yaml" file in that directory.

folder example

Open the meta.yaml file and you should find the experiment_id, simply change the number behind it should do the trick.

meta.yaml example

Upvotes: 2

For local users, I directly move run folders and modify the experiment id in meta.yaml.

Upvotes: 5

Related Questions