Skip to content

Commit 8f95829

Browse files
committed
setup page for assignment 1
1 parent d41ad6d commit 8f95829

File tree

3 files changed

+91
-22
lines changed

3 files changed

+91
-22
lines changed

_config.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,4 @@ kramdown:
1919
syntax_highlighter: rouge
2020

2121
# links to homeworks
22-
hw_1_jupyter: https://cs231n.github.io/assignments/2020/assignment1_jupyter.zip
23-
hw_1_colab: https://cs231n.github.io/assignments/2020/assignment1_colab.zip
24-
hw_2_jupyter: https://cs231n.github.io/assignments/2020/assignment2_jupyter.zip
25-
hw_2_colab: https://cs231n.github.io/assignments/2020/assignment2_colab.zip
26-
hw_3_jupyter: https://cs231n.github.io/assignments/2020/assignment3_jupyter.zip
27-
hw_3_colab: https://cs231n.github.io/assignments/2020/assignment3_colab.zip
22+
hw_1_colab: https://cs231n.github.io/assignments/2021/assignment1_colab.zip

assignments/2021/assignment1.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
layout: page
3+
title: Assignment 1
4+
mathjax: true
5+
permalink: /assignments2021/assignment1/
6+
---
7+
8+
<span style="color:red">This assignment is due on **Friday, April 16 2021** at 11:59pm PST.</span>
9+
10+
Starter code containing Colab notebooks can be [downloaded here]({{site.hw_1_colab}}).
11+
12+
- [Setup](#setup)
13+
- [Goals](#goals)
14+
- [Q1: k-Nearest Neighbor classifier (20 points)](#q1-k-nearest-neighbor-classifier-20-points)
15+
- [Q2: Training a Support Vector Machine (25 points)](#q2-training-a-support-vector-machine-25-points)
16+
- [Q3: Implement a Softmax classifier (20 points)](#q3-implement-a-softmax-classifier-20-points)
17+
- [Q4: Two-Layer Neural Network (25 points)](#q4-two-layer-neural-network-25-points)
18+
- [Q5: Higher Level Representations: Image Features (10 points)](#q5-higher-level-representations-image-features-10-points)
19+
- [Submitting your work](#submitting-your-work)
20+
21+
### Setup
22+
23+
Please familiarize yourself with the [recommended workflow]({{site.baseurl}}/setup-instructions/#working-remotely-on-google-colaboratory) before starting the assignment. You should also watch the Colab walkthrough tutorial below.
24+
25+
<iframe style="display: block; margin: auto;" width="560" height="315" src="https://www.youtube.com/embed/IZUz4pRYlus" frameborder="0" allowfullscreen></iframe>
26+
27+
**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.
28+
29+
Once you have completed all Colab notebooks **except `collect_submission.ipynb`**, proceed to the [submission instructions](#submitting-your-work).
30+
31+
### Goals
32+
33+
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:
34+
35+
- Understand the basic **Image Classification pipeline** and the data-driven approach (train/predict stages).
36+
- Understand the train/val/test **splits** and the use of validation data for **hyperparameter tuning**.
37+
- Develop proficiency in writing efficient **vectorized** code with numpy.
38+
- Implement and apply a k-Nearest Neighbor (**kNN**) classifier.
39+
- Implement and apply a Multiclass Support Vector Machine (**SVM**) classifier.
40+
- Implement and apply a **Softmax** classifier.
41+
- Implement and apply a **Two layer neural network** classifier.
42+
- Understand the differences and tradeoffs between these classifiers.
43+
- Get a basic understanding of performance improvements from using **higher-level representations** as opposed to raw pixels, e.g. color histograms, Histogram of Gradient (HOG) features, etc.
44+
45+
### Q1: k-Nearest Neighbor classifier (20 points)
46+
47+
The notebook **knn.ipynb** will walk you through implementing the kNN classifier.
48+
49+
### Q2: Training a Support Vector Machine (25 points)
50+
51+
The notebook **svm.ipynb** will walk you through implementing the SVM classifier.
52+
53+
### Q3: Implement a Softmax classifier (20 points)
54+
55+
The notebook **softmax.ipynb** will walk you through implementing the Softmax classifier.
56+
57+
### Q4: Two-Layer Neural Network (25 points)
58+
59+
The notebook **two\_layer\_net.ipynb** will walk you through the implementation of a two-layer neural network classifier.
60+
61+
### Q5: Higher Level Representations: Image Features (10 points)
62+
63+
The notebook **features.ipynb** will examine the improvements gained by using higher-level representations
64+
as opposed to using raw pixel values.
65+
66+
### Submitting your work
67+
68+
**Important**. Please make sure that the submitted notebooks have been run and the cell outputs are visible.
69+
70+
Once you have completed all notebooks and filled out the necessary code, you need to follow the below instructions to submit your work:
71+
72+
**1.** Open `collect_submission.ipynb` in Colab and execute the notebook cells.
73+
74+
This notebook/script will:
75+
76+
* Generate a zip file of your code (`.py` and `.ipynb`) called `a1.zip`.
77+
* Convert all notebooks into a single PDF file.
78+
79+
If your submission for this step was successful, you should see the following display message:
80+
81+
`### Done! Please submit a1.zip and the pdfs to Gradescope. ###`
82+
83+
**2.** Submit the PDF and the zip file to [Gradescope](https://www.gradescope.com/courses/103764).
84+
85+
Remember to download `a1.zip` and `assignment.pdf` locally before submitting to Gradescope.

index.html

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,11 @@
1313

1414
<div class="home">
1515
<div class="materials-wrap">
16-
<!-- <div class="module-header">Spring 2021 Assignments</div> -->
17-
<!-- <div class="materials-item">
18-
<a href="assignments2020/assignment1/">
19-
Assignment #1: Image Classification, kNN, SVM, Softmax, Fully-Connected Neural Network
20-
</a>
21-
</div>
22-
<div class="materials-item">
23-
<a href="assignments2020/assignment2/">
24-
Assignment #2: Fully-Connected Nets, BatchNorm, Dropout, ConvNets, Tensorflow/Pytorch
25-
</a>
26-
</div>
27-
<div class="materials-item">
28-
<a href="assignments2020/assignment3/">
29-
Assignment #3: Image Captioning with Vanilla RNNs and LSTMs, Neural Net Visualization, Style Transfer, Generative Adversarial Networks
30-
</a>
31-
</div> -->
16+
<div class="module-header">Spring 2021 Assignments</div>
17+
<div class="materials-item">
18+
<a href="assignments2021/assignment1/">Assignment #1: Image Classification, kNN, SVM, Softmax, Fully-Connected Neural Network</a>
19+
</div>
20+
</div>
3221
<!--
3322
<div class="materials-item">
3423
<a href="assignments2019/assignment2/">

0 commit comments

Comments
 (0)