This assignment is due on Friday, April 14 2023 at 11:59pm PST.
Starter code containing Colab notebooks can be downloaded here.
Please familiarize yourself with the recommended workflow before starting the assignment. You should also watch the Colab walkthrough tutorial below.
Note. Ensure you are periodically saving your notebook (File -> Save
) so that you don’t lose your progress if you step away from the assignment and the Colab VM disconnects.
Once you have completed all Colab notebooks except collect_submission.ipynb
, proceed to the submission instructions.
In this assignment you will practice putting together a simple image classification pipeline based on the k-Nearest Neighbor or the SVM/Softmax classifier. The goals of this assignment are as follows:
The notebook knn.ipynb will walk you through implementing the kNN classifier.
The notebook svm.ipynb will walk you through implementing the SVM classifier.
The notebook softmax.ipynb will walk you through implementing the Softmax classifier.
The notebook two_layer_net.ipynb will walk you through the implementation of a two-layer neural network classifier.
The notebook features.ipynb will examine the improvements gained by using higher-level representations as opposed to using raw pixel values.
Important. Please make sure that the submitted notebooks have been run and the cell outputs are visible.
Once you have completed all notebooks and filled out the necessary code, you need to follow the below instructions to submit your work:
Even if you have completed your notebooks locally, please execute the following PDF generation on Colab. This will prevent a lot of headaches installing xelatex
locally, specifically on Windows or Mac OS.
1. Open collect_submission.ipynb
in Colab and execute the notebook cells.
This notebook/script will:
.py
and .ipynb
) called a1_code_submission.zip
.If your submission for this step was successful, you should see the following display message:
### Done! Please submit a1_code_submission.zip and a1_inline_submission.pdf to Gradescope. ###
2. Submit the PDF and the zip file to Gradescope.
Remember to download a1_code_submission.zip
and a1_inline_submission.pdf
locally before submitting to Gradescope.