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

logger.py 369 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
14
15
  1. import mlflow
  2. from dagshub import DAGsHubLogger
  3. class BaseLogger:
  4. def __init__(self):
  5. self.logger = DAGsHubLogger()
  6. def log_metrics(self, metrics: dict):
  7. mlflow.log_metrics(metrics)
  8. self.logger.log_metrics(metrics)
  9. def log_params(self, params: dict):
  10. mlflow.log_params(params)
  11. self.logger.log_hyperparams(params)
Tip!

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

Comments

Loading...