- Why do we say that fastai has a “layered” API? What does it mean?
- Why does a have a
decode
method? What does it do? - Why does a
Transform
have asetup
method? What does it do? - How does a
Transform
work when called on a tuple? - Write a
Normalize
transform that fully normalizes items (subtract the mean and divide by the standard deviation of the dataset), and that can decode that behavior. Try not to peek! - Write a
Transform
that does the numericalization of tokenized texts (it should set its vocab automatically from the dataset seen and have adecode
method). Look at the source code of fastai if you need help. - What is a ?
- What is a
TfmdLists
? - What is a
Datasets
? How is it different from aTfmdLists
? - How can you build a
DataLoaders
from aTfmdLists
or aDatasets
? - How do you pass and
batch_tfms
when building aDataLoaders
from aTfmdLists
or aDatasets
? - What do you need to do when you want to have your custom items work with methods like
show_batch
orshow_results
? - Why can we easily apply fastai data augmentation transforms to the
SiamesePair
we built?
- Use the mid-level API to prepare the data in
DataLoaders
on your own datasets. Try this with the Pet dataset and the Adult dataset from Chapter 1.