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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group