class_docstr: Records evaluation data into Aim.
  Similar to `lightgbm.record_evaluation` callback:
  https://lightgbm.readthedocs.io/en/latest/pythonapi/lightgbm.record_evaluation.html
class_docstr_tok: ["Records","evaluation","data","into","Aim",".","Similar","to","`","lightgbm.record_evaluation","`","callback",":","https",":","\/\/lightgbm.readthedocs.io\/en\/latest\/pythonapi\/lightgbm.record_evaluation.html"]
code: def __call__(self, env: CallbackEnv):
      if env.iteration == env.begin_iteration:
          self.setup()
  
      self.before_tracking(env=env)
  
      for item in env.evaluation_result_list:
          if len(item) == 4:
              data_name, eval_name, result, _ = item
              self._run.track(
                  result,
                  name=eval_name,
                  context={"data_name": data_name},
              )
          else:
              data_name, eval_name = item[1].split()
              res_mean = item[2]
              res_stdv = item[4]
              self._run.track(
                  res_mean,
                  name=f"{eval_name}-mean",
                  context={"data_name": data_name},
              )
              self._run.track(
                  res_stdv,
                  name=f"{eval_name}-stdv",
                  context={"data_name": data_name},
              )
  
      self.after_tracking(env=env)
  
file_path: aim/aim/sdk/adapters/lightgbm.py
imports: from typing import Optional
  from aim import Run
  from aim.ext.resource import DEFAULT_SYSTEM_TRACKING_INT
label_desc: Use image node_id 6 for calling the AimCallback obj's underlying member method code with example usage: obj.__call__(env) without return types