Set tags for an MLFlow Experiment using Python?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2021 09:31 AM
There is this rest API: https://www.mlflow.org/docs/latest/rest-api.html#set-experiment-tag
Can I do the same from python's MLFlow API?
Labels:
- Labels:
-
MLflow Experiment
-
Tags
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2021 01:28 PM
Someone answered first in StackOverflow. Here it is:
from mlflow.tracking import MlflowClient
# Create an experiment with a name that is unique and case sensitive.
client = MlflowClient()
experiment_id = client.create_experiment("Social NLP Experiments")
client.set_experiment_tag(experiment_id, "nlp.framework", "Spark NLP")