class_docstr: A `TrackerCallback` that saves the model's best during training and loads it at the end.
class_docstr_tok: ["A","`","TrackerCallback","`","that","saves","the","model","'s","best","during","training","and","loads","it","at","the","end","."]
code: def after_fit(self, **kwargs):
      if not self.every_epoch:
          self.learn.load(f"{self.fname}", with_opt=self.with_opt)
  
imports: import logging
  import time
  import numpy
  from fastai.callback.core import Callback, CancelFitException
  from fastai.callback.tracker import TrackerCallback
  from fastcore.basics import store_attr
label_desc: Use image node_id 4 for calling the AgSaveModelCallback obj's underlying member method code with example usage: obj.after_fit() without return types