-
-
Save khuyentran1401/d1f295fe8088b8b0f8ac435a6302e8c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mlflow | |
from dagshub import DAGsHubLogger | |
class BaseLogger: | |
def __init__(self): | |
self.logger = DAGsHubLogger() | |
def log_metrics(self, metrics: dict): | |
mlflow.log_metrics(metrics) | |
self.logger.log_metrics(metrics) | |
def log_params(self, params: dict): | |
mlflow.log_params(params) | |
self.logger.log_hyperparams(params) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment