class_docstr: Class collect metrics from the training engine and send it to plugins, when send is called
class_docstr_tok: ["Class","collect","metrics","from","the","training","engine","and","send","it","to","plugins",",","when","send","is","called"]
docstr: Args:
      outputs: list of output modules: objects inheriting from BaseOutput
          or strings for livelossplot built-in output methods with default parameters
      mode: Options: 'notebook' or 'script' - some of outputs need to change some behaviors,
          depending on the working environment
      **kwargs: key-arguments which are passed to MainLogger constructor
docstr_tok: ["Args",":","outputs",":","list","of","output","modules",":","objects","inheriting","from","BaseOutput","or","strings","for","livelossplot","built-in","output","methods","with","default","parameters","mode",":","Options",":","'notebook","'","or","'script","'","-","some","of","outputs","need","to","change","some","behaviors",",","depending","on","the","working","environment","*","*","kwargs",":","key-arguments","which","are","passed","to","MainLogger","constructor"]
code: def __init__(
      self,
      outputs: List[Union[Type[BO], str]] = [
          "MatplotlibPlot",
          "ExtremaPrinter",
      ],
      mode: str = "notebook",
      **kwargs,
  ):
      """
      Args:
          outputs: list of output modules: objects inheriting from BaseOutput
              or strings for livelossplot built-in output methods with default parameters
          mode: Options: 'notebook' or 'script' - some of outputs need to change some behaviors,
              depending on the working environment
          **kwargs: key-arguments which are passed to MainLogger constructor
      """
      self.logger = MainLogger(**kwargs)
      self.outputs = [
          getattr(livelossplot.outputs, out)()
          if isinstance(out, str)
          else out
          for out in outputs
      ]
      for out in self.outputs:
          out.set_output_mode(mode)
  
file_path: livelossplot/livelossplot/plot_losses.py
imports: import warnings
  from typing import Type, TypeVar, List, Union
  import livelossplot
  from livelossplot.main_logger import MainLogger
  from livelossplot import outputs
label_desc: Use image node_id 1 to create a new PlotLosses object  with example: obj = PlotLosses(outputs, mode)