class_docstr: Abstract class :class:`Reporter` for result visualisation.
docstr: Export the reporter logged history from a database table to an
  optimiser-friendly history.
  
  Args:
      table: (optional) :obj:`str`. The name of the table to export.
          Defaults to the one created during reporter initialisation.
  
  Returns:
      A list of :class:`HistoryPoint` objects which can be loaded into
      an :class:`Optimiser` instance.
docstr_tok: ["Export","the","reporter","logged","history","from","a","database","table","to","an","optimiser-friendly","history",".","Args",":","table",":","(","optional",")",":","obj",":","`","str","`",".","The","name","of","the","table","to","export",".","Defaults","to","the","one","created","during","reporter","initialisation",".","Returns",":","A","list","of",":","class",":","`","HistoryPoint","`","objects","which","can","be","loaded","into","an",":","class",":","`","Optimiser","`","instance","."]
code: def to_history(self, table: str = None) -> List[HistoryPoint]:
      """Export the reporter logged history from a database table to an
      optimiser-friendly history.
  
      Args:
          table: (optional) :obj:`str`. The name of the table to export.
              Defaults to the one created during reporter initialisation.
  
      Returns:
          A list of :class:`HistoryPoint` objects which can be loaded into
          an :class:`Optimiser` instance.
      """
      history = []
      if table is None:
          default_table = self._db_default_table
      else:
          default_table = self._db.table(table)
      for doc in default_table:
          history.append(self._convert_doc_to_history(doc))
      return history
  
imports: import abc
  import datetime
  import os
  from typing import Any, Callable, Dict, List, Optional, Tuple, Union
  import tinydb
  from hypertunity.domain import Domain, Sample
  from hypertunity.optimisation.base import EvaluationScore, HistoryPoint
label_desc: Use image node_id 12 for calling the Reporter obj's underlying member method code with example usage: obj.to_history(table) and returns: history