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_epoch(self):
      # log metrics
      for n, v in zip(
          self.learn.recorder.metric_names, self.learn.recorder.log
      ):
          if n not in ["epoch", "time"]:
              self.experiment.log_metric(f"epoch__{n}", v)
          if n == "time":
              self.experiment.log_text(f"epoch__{n}", str(v))
  
      # log model weights
      if self.log_model_weights and hasattr(self.learn, "save_model"):
          if self.learn.save_model.every_epoch:
              _file = join_path_file(
                  f"{self.learn.save_model.fname}_{self.learn.save_model.epoch}",
                  self.learn.path / self.learn.model_dir,
                  ext=".pth",
              )
          else:
              _file = join_path_file(
                  self.learn.save_model.fname,
                  self.learn.path / self.learn.model_dir,
                  ext=".pth",
              )
          self.experiment.log_asset(_file)
  
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 4 for calling the CometCallback obj's underlying member method code with example usage: obj.after_epoch() without return types