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

utils.py 395 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
  1. import uuid
  2. from madewithml.config import mlflow
  3. def generate_experiment_name(prefix: str = "test") -> str:
  4. return f"{prefix}-{uuid.uuid4().hex[:8]}"
  5. def delete_experiment(experiment_name: str) -> None:
  6. client = mlflow.tracking.MlflowClient()
  7. experiment_id = client.get_experiment_by_name(experiment_name).experiment_id
  8. client.delete_experiment(experiment_id=experiment_id)
Tip!

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

Comments

Loading...