While going over Lesson 9, callbacks section; where Jeremy introduces the Runner, the code contains several calls like:
def one_batch(self, xb, yb): self.xb,self.yb = xb,yb if self('begin_batch'): return self.pred = self.model(self.xb) if self('after_pred'): return
While the ‘self’ object is commonly used in classes, I do not understand the use of the
self('begin_batch'), which looks like a method call, on a method named
Have never used self this way. Please advise.
Where is it coming from?