We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Lecture 57
This is a lecture record from your database.
- Title
- Chapter 6, Multi-Category
- Description
- Learn how to adjust your image classifier for multi-label or regression tasks.
- Grade level
- Private
- false
- Model creativity
- 0.5
- Lesson plan
- 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 Dataset and DataLoader? What does a Datasets object normally contain? What does a DataLoaders object normally contain? What does lambda do 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_loss not an appropriate loss function when using a one-hot-encoded target? What is the difference between nn.BCELoss and nn.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_range implemented 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.
- Version
- 1
- Teacher language
- Student language