class_docstr: Callback that displays progress bar and useful statistics in terminal
class_docstr_tok: ["Callback","that","displays","progress","bar","and","useful","statistics","in","terminal"]
code: def on_batch_end(self, batch, logs=None):
      log_data = {
          key: "%.04f" % value
          for key, value in self.trainer.history.batch_metrics.items()
      }
      for k, v in logs.items():
          if k.endswith("metric"):
              log_data[k.split("_metric")[0]] = "%.02f" % v
      log_data["learn_rates"] = self.trainer.history.lrs
      self.progbar.set_postfix(log_data)
  
file_path: pywick/pywick/callbacks/TQDM.py
imports: from tqdm import tqdm
  from .None import Callback
label_desc: Use image node_id 8 for calling the TQDM obj's underlying member method code with example usage: obj.on_batch_end(batch, logs) without return types