class_docstr: Basic class handling tweaks of the training loop by changing a `Learner` in various events
class_docstr_tok: ["Basic","class","handling","tweaks","of","the","training","loop","by","changing","a","`","Learner","`","in","various","events"]
docstr: Set an attribute for a `Callback`
docstr_tok: ["Set","an","attribute","for","a","`","Callback","`"]
code: def __setattr__(self, name, value):
      "Set an attribute for a `Callback`"
      if hasattr(self.learn, name):
          warn(
              f"You are shadowing an attribute ({name}) that exists in the learner. Use `self.learn.{name}` to avoid this"
          )
      super().__setattr__(name, value)
  
imports: from __future__ import annotations
  from ..data.all import *
  from ..optimizer import *
  from ..losses import BaseLoss
label_desc: Use image node_id 4 for calling the Callback obj's underlying member method code with example usage: obj.__setattr__(name, value) without return types