class_docstr: A class that directly prints to console.
docstr: Initialize the tracker.
  
  :param track_parameters:
      Whether to print parameters.
  :param parameter_filter:
      A regular expression to filter parameters. If None, print all parameters.
  :param track_metrics:
      Whether to print metrics.
  :param metric_filter:
      A regular expression to filter metrics. If None, print all parameters.
  :param start_end_run:
      Whether to print start/end run messages.
  :param writer:
      The writer to use - one of "tqdm", "builtin", or "logger".
docstr_tok: ["Initialize","the","tracker",".",":","param","track_parameters",":","Whether","to","print","parameters",".",":","param","parameter_filter",":","A","regular","expression","to","filter","parameters",".","If","None",",","print","all","parameters",".",":","param","track_metrics",":","Whether","to","print","metrics",".",":","param","metric_filter",":","A","regular","expression","to","filter","metrics",".","If","None",",","print","all","parameters",".",":","param","start_end_run",":","Whether","to","print","start\/end","run","messages",".",":","param","writer",":","The","writer","to","use","-","one","of","``","tqdm","''",",","``","builtin","''",",","or","``","logger","''","."]
code: def __init__(
      self,
      *,
      track_parameters: bool = True,
      parameter_filter: Union[None, str, Pattern[str]] = None,
      track_metrics: bool = True,
      metric_filter: Union[None, str, Pattern[str]] = None,
      start_end_run: bool = False,
      writer: str = "tqdm",
  ):
      """
      Initialize the tracker.
  
      :param track_parameters:
          Whether to print parameters.
      :param parameter_filter:
          A regular expression to filter parameters. If None, print all parameters.
      :param track_metrics:
          Whether to print metrics.
      :param metric_filter:
          A regular expression to filter metrics. If None, print all parameters.
      :param start_end_run:
          Whether to print start/end run messages.
      :param writer:
          The writer to use - one of "tqdm", "builtin", or "logger".
      """
      self.start_end_run = start_end_run
  
      self.track_parameters = track_parameters
      if isinstance(parameter_filter, str):
          parameter_filter = re.compile(parameter_filter)
      self.parameter_filter = parameter_filter
  
      self.track_metrics = track_metrics
      if isinstance(metric_filter, str):
          metric_filter = re.compile(metric_filter)
      self.metric_filter = metric_filter
  
      if writer == "tqdm":
          self.write = tqdm.write
      elif writer == "builtin":
          self.write = print  # noqa:T202
      elif writer == "logging":
          self.write = logging.getLogger("pykeen").info
  
imports: import logging
  import re
  from collections import defaultdict
  from typing import Any, Iterable, List, Mapping, MutableMapping, Optional, Pattern, Union
  from tqdm.auto import tqdm
  from ..utils import flatten_dictionary
label_desc: Use image node_id 1 to create a new ConsoleResultTracker object from inherited base classes: ResultTracker with example: obj = ConsoleResultTracker()