class_docstr: A :class:`Reporter` subclass to visualise the results in Tensorboard.
  
  It utilises Tensorboard's HParams plugin as a dashboard for the summary of
  the optimisation. This class prepares and creates entries with the scalar
  data of the experiment trials, containing the domain sample and the
  corresponding metrics.
  
  Notes:
      The user is responsible for launching TensorBoard in the browser.
class_docstr_tok: ["A",":","class",":","`","Reporter","`","subclass","to","visualise","the","results","in","Tensorboard",".","It","utilises","Tensorboard","'s","HParams","plugin","as","a","dashboard","for","the","summary","of","the","optimisation",".","This","class","prepares","and","creates","entries","with","the","scalar","data","of","the","experiment","trials",",","containing","the","domain","sample","and","the","corresponding","metrics",".","Notes",":","The","user","is","responsible","for","launching","TensorBoard","in","the","browser","."]
docstr: Create an entry for a :class:`HistoryPoint` in Tensorboard.
  
  Args:
      entry: :class:`HistoryPoint`. The sample and evaluation metrics to log.
      experiment_dir: (optional) :obj:`str`. The directory name where to
          store all experiment related data. It will be prefixed by the
          `logdir` path which is provided on initialisation of the
          :class:`Tensorboard` object. Default is 'experiment_[number]'.
docstr_tok: ["Create","an","entry","for","a",":","class",":","`","HistoryPoint","`","in","Tensorboard",".","Args",":","entry",":",":","class",":","`","HistoryPoint","`",".","The","sample","and","evaluation","metrics","to","log",".","experiment_dir",":","(","optional",")",":","obj",":","`","str","`",".","The","directory","name","where","to","store","all","experiment","related","data",".","It","will","be","prefixed","by","the","`","logdir","`","path","which","is","provided","on","initialisation","of","the",":","class",":","`","Tensorboard","`","object",".","Default","is","'experiment_","[","number","]","'","."]
code: def _log_history_point(
      self, entry: HistoryPoint, experiment_dir: str = None
  ):
      """Create an entry for a :class:`HistoryPoint` in Tensorboard.
  
      Args:
          entry: :class:`HistoryPoint`. The sample and evaluation metrics to log.
          experiment_dir: (optional) :obj:`str`. The directory name where to
              store all experiment related data. It will be prefixed by the
              `logdir` path which is provided on initialisation of the
              :class:`Tensorboard` object. Default is 'experiment_[number]'.
      """
      converted = self._convert_to_hparams_sample(entry.sample)
      if not experiment_dir:
          experiment_dir = f"experiment_{str(self._experiment_counter)}"
          self._experiment_counter += 1
      full_experiment_dir = os.path.join(self._logdir, experiment_dir)
      if EAGER_MODE:
          self._log_tf_eager_mode(
              converted, entry.metrics, full_experiment_dir
          )
      else:
          self._log_tf_graph_mode(
              converted, entry.metrics, full_experiment_dir
          )
  
file_path: hypertunity/hypertunity/reports/tensorboard.py
imports: import os
  import sys
  from typing import Any, Dict, List, Union
  import tinydb
  from hypertunity import utils
  from hypertunity.domain import Domain, Sample
  from hypertunity.optimisation.base import HistoryPoint
  from .base import Reporter
label_desc: Use image node_id 7 for calling the Tensorboard obj's underlying member method code with example usage: obj._log_history_point(entry, experiment_dir) without return types