class_docstr: Log losses, metrics, model weights, model architecture summary to neptune
class_docstr_tok: ["Log","losses",",","metrics",",","model","weights",",","model","architecture","summary","to","neptune"]
code: def after_batch(self):
      # log loss and opt.hypers
      if self.learn.training:
          self.experiment.log_metric(
              "batch__smooth_loss", self.learn.smooth_loss
          )
          self.experiment.log_metric("batch__loss", self.learn.loss)
          self.experiment.log_metric(
              "batch__train_iter", self.learn.train_iter
          )
          for i, h in enumerate(self.learn.opt.hypers):
              for k, v in h.items():
                  self.experiment.log_metric(
                      f"batch__opt.hypers.{k}", v
                  )
  
file_path: fastai/fastai/callback/comet.py
imports: from __future__ import annotations
  import tempfile
  from ..basics import *
  from ..learner import Callback
  import comet_ml
label_desc: Use image node_id 3 for calling the CometCallback obj's underlying member method code with example usage: obj.after_batch() without return types