docstr: Takes as input the name of the experiment which will be
  used for creating a .log file with the outputs and the params
  dictionary from the input model in `Scan()`
  
  experiment_name | str | must match the experiment_name in `Scan()`
docstr_tok: ["Takes","as","input","the","name","of","the","experiment","which","will","be","used","for","creating","a",".log","file","with","the","outputs","and","the","params","dictionary","from","the","input","model","in","`","Scan","(",")","`","experiment_name","|","str","|","must","match","the","experiment_name","in","`","Scan","(",")","`"]
code: def __init__(self, experiment_name, params):
      """Takes as input the name of the experiment which will be
      used for creating a .log file with the outputs and the params
      dictionary from the input model in `Scan()`
  
      experiment_name | str | must match the experiment_name in `Scan()`
  
      """
  
      super(ExperimentLog, self).__init__()
  
      import glob
      import os
  
      # get the experiment id first
      list_of_files = glob.glob("./" + experiment_name + "/*.csv")
      try:
          latest_file = max(list_of_files, key=os.path.getmtime)
      except ValueError:
          print(
              "\n TALOS ERROR: `experiment_name` has to match `Scan(experiment_name)`\n"
          )
  
      self.name = latest_file.replace(".csv", "") + ".log"
  
      # rest of the config variables
      self.params = params
      self.counter = 1
      self.new_file = True
  
file_path: talos/talos/callbacks/experiment_log.py
imports: from tensorflow.keras.callbacks import Callback
label_desc: Use image node_id 1 to create a new ExperimentLog object from inherited base classes: Callback with example: obj = ExperimentLog(experiment_name, params)