After I upgraded fastai to 1.0.59 I got this error when doing from fastai.callbacks import Callback
It looks like fastai.callbacks.Callback was renamed to fastai.basic_train.LearnerCallback. Is this right?
Thank you for your reply. I made my custom callback inherit fastai.basic_train.LearnerCallback and it worked. What’s the difference between fastai.callback.Callback and fastai.basic_train.LearnerCallback?
A LearnerCallback
will have the Learner
has an attribute (if you need it), a regular Callback
does not.
Thanks!