class_docstr: Log the results displayed in `learn.path/fname`
class_docstr_tok: ["Log","the","results","displayed","in","`","learn.path\/fname","`"]
docstr: Close the file and clean up.
docstr_tok: ["Close","the","file","and","clean","up","."]
code: def after_fit(self):
      "Close the file and clean up."
      if hasattr(self, "gather_preds"):
          return
      self.file.close()
      self.learn.logger = self.old_logger
  
imports: from __future__ import annotations
  from ..basics import *
label_desc: Use image node_id 5 for calling the CSVLogger obj's underlying member method code with example usage: obj.after_fit() without return types