Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

get_or_create_mlflow_experiment.py 205 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
  1. import mlflow
  2. def get_experiment_id(name):
  3. exp = mlflow.get_experiment_by_name(name)
  4. if exp is None:
  5. exp_id = mlflow.create_experiment(name)
  6. return exp_id
  7. return exp.experiment_id
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...