CSE 400
Machine Intelligence with Deep Learning
Assignment 2: Loss Function
Description
In this homework you will practice how to create SVM & Softmax loss function in Python with
NumPy package. You need to understand how SVM & Softmax loss function work in order to
complete this homework successfully.
Instruction
*** Before you start, install matplotlib package to plot images and weights. Open Command
line (cmd)/Terminal and type “(sudo) pip3 install matplotlib”
In this homework, you need to fill the block of code in assignment2.py, pythonSVMLoss(),
numPySVMLoss(), pythonSoftmaxLoss(), and numPySoftmaxLoss() function.
- In each file has comments that will walk you through the implementation, and also,
it has the explanation in each block of code that you have to fill in.
- Don’t put any print function in your answer.
- Comment your codes as much as you can.
- Edit/Add any source code outside TODO block is not allowed.
Submission
- Your submission will contain 1 python file named as assignment2.py
- Zip file named via the following convention:
<SU-EMAIL>_<FIRST-Name>_AS2.zip
Ex. kpugdeet_Krittaphat_AS2.zip