So, DataBunch wasn’t working either. Even though I had imported:
from fastai import *
Is this normal? It does not align with the course notebook. Anyways, then I tried importing the fastai.vision application and everything worked. Could this be a bug with from fastai import *?
Yeah, this makes sense! It’s just that there seems to have been a change in the fastai library structure since the the Part 1 course. Jeremy was using from fastai import * and not from fastai.vision import *.
Note to self, in Fast.ai v2 now the patching happens in fastcore
from fastcore import all
(sorry for the necroposting, I found this thread while trying to solve this problem and also found my own answer… it looked a good idea to update the answer)