class_docstr: A tracker for MLflow.
docstr: Initialize result tracking via MLFlow.
  
  :param tracking_uri:
      The tracking uri.
  :param experiment_id:
      The experiment ID. If given, this has to be the ID of an existing experiment in MFLow. Has priority over
      experiment_name.
  :param experiment_name:
      The experiment name. If this experiment name exists, add the current run to this experiment. Otherwise
      create an experiment of the given name.
  :param tags:
      The additional run details which are presented as tags to be logged
docstr_tok: ["Initialize","result","tracking","via","MLFlow",".",":","param","tracking_uri",":","The","tracking","uri",".",":","param","experiment_id",":","The","experiment","ID",".","If","given",",","this","has","to","be","the","ID","of","an","existing","experiment","in","MFLow",".","Has","priority","over","experiment_name",".",":","param","experiment_name",":","The","experiment","name",".","If","this","experiment","name","exists",",","add","the","current","run","to","this","experiment",".","Otherwise","create","an","experiment","of","the","given","name",".",":","param","tags",":","The","additional","run","details","which","are","presented","as","tags","to","be","logged"]
code: def __init__(
      self,
      tracking_uri: Optional[str] = None,
      experiment_id: Optional[int] = None,
      experiment_name: Optional[str] = None,
      tags: Optional[Dict[str, Any]] = None,
  ):
      """
      Initialize result tracking via MLFlow.
  
      :param tracking_uri:
          The tracking uri.
      :param experiment_id:
          The experiment ID. If given, this has to be the ID of an existing experiment in MFLow. Has priority over
          experiment_name.
      :param experiment_name:
          The experiment name. If this experiment name exists, add the current run to this experiment. Otherwise
          create an experiment of the given name.
      :param tags:
          The additional run details which are presented as tags to be logged
      """
      import mlflow as _mlflow
  
      self.mlflow = _mlflow
      self.tags = tags
  
      self.mlflow.set_tracking_uri(tracking_uri)
      if experiment_id is not None:
          experiment = self.mlflow.get_experiment(
              experiment_id=experiment_id
          )
          experiment_name = experiment.name
      if experiment_name is not None:
          self.mlflow.set_experiment(experiment_name)
  
file_path: pykeen/src/pykeen/trackers/mlflow.py
imports: from typing import Any, Dict, Mapping, Optional
  from .base import ResultTracker
  from ..utils import flatten_dictionary
label_desc: Use image node_id 1 to create a new MLFlowResultTracker object from inherited base classes: ResultTracker with example: obj = MLFlowResultTracker(tracking_uri, experiment_id, experiment_name, tags)