cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Set tags for an MLFlow Experiment using Python?

NAS
New Contributor III

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?

2 REPLIES 2

Kaniz
Community Manager
Community Manager

Hi @ NAS! My name is Kaniz, and I'm the technical moderator here. Great to meet you, and thanks for your question! Let's see if your peers in the community have an answer to your question first. Or else I will get back to you soon. Thanks.

NAS
New Contributor III

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")

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!