class_docstr: Base class for callbacks.
  
  All custom callbacks should inherit from this class. The subclass
  may override any of the ``on_...`` methods. It is, however, not
  necessary to override all of them, since it's okay if they don't
  have any effect.
  
  Classes that inherit from this also gain the ``get_params`` and
  ``set_params`` method.
class_docstr_tok: ["Base","class","for","callbacks",".","All","custom","callbacks","should","inherit","from","this","class",".","The","subclass","may","override","any","of","the","``","on_","...","``","methods",".","It","is",",","however",",","not","necessary","to","override","all","of","them",",","since","it","'s","okay","if","they","don't","have","any","effect",".","Classes","that","inherit","from","this","also","gain","the","``","get_params","``","and","``","set_params","``","method","."]
docstr: (Re-)Set the initial state of the callback. Use this
  e.g. if the callback tracks some state that should be reset
  when the model is re-initialized.
  
  This method should return self.
docstr_tok: ["(","Re-",")","Set","the","initial","state","of","the","callback",".","Use","this","e.g",".","if","the","callback","tracks","some","state","that","should","be","reset","when","the","model","is","re-initialized",".","This","method","should","return","self","."]
code: def initialize(self):
      """(Re-)Set the initial state of the callback. Use this
      e.g. if the callback tracks some state that should be reset
      when the model is re-initialized.
  
      This method should return self.
  
      """
      return self
  
file_path: skorch/skorch/callbacks/base.py
imports: import warnings
  from sklearn.base import BaseEstimator
  from skorch.exceptions import SkorchWarning
label_desc: Use image node_id 1 for calling the Callback obj's underlying member method code with example usage: obj.initialize() and returns: self