Other Computer Vision Problems
Multi-Label Classification
The Data
Sidebar: Pandas and DataFrames
End sidebar
Constructing a DataBlock
Binary Cross-Entropy
Regression
Assemble the Data
Training a Model
Conclusion
Questionnaire
How could multi-label classification improve the usability of the bear classifier?
How do we encode the dependent variable in a multi-label classification problem?
How do you access the rows and columns of a DataFrame as if it was a matrix?
How do you get a column by name from a DataFrame?
What is the difference between a
DatasetandDataLoader?What does a
Datasetsobject normally contain?What does a
DataLoadersobject normally contain?What does
lambdado in Python?What are the methods to customize how the independent and dependent variables are created with the data block API?
Why is softmax not an appropriate output activation function when using a one hot encoded target?
Why is
nll_lossnot an appropriate loss function when using a one-hot-encoded target?What is the difference between
nn.BCELossandnn.BCEWithLogitsLoss?Why can't we use regular accuracy in a multi-label problem?
When is it okay to tune a hyperparameter on the validation set?
How is
y_rangeimplemented in fastai? (See if you can implement it yourself and test it without peeking!)What is a regression problem? What loss function should you use for such a problem?
What do you need to do to make sure the fastai library applies the same data augmentation to your input images and your target point coordinates?
Further Research
Read a tutorial about Pandas DataFrames and experiment with a few methods that look interesting to you. See the book's website for recommended tutorials.
Retrain the bear classifier using multi-label classification. See if you can make it work effectively with images that don't contain any bears, including showing that information in the web application. Try an image with two different kinds of bears. Check whether the accuracy on the single-label dataset is impacted using multi-label classification.