Fall CSE 400 AS 2
2018 Machine Intelligence with Deep Learning 9/18/2018
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
- Upload zip file to blackboard before 11:59PM (EST Time) 9/24/2018
版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。