# CECS 551 Assignment 3

Original price was: \$35.00.Current price is: \$30.00.

Category:

CECS 551
Assignment 3
Total: 70 Points
General Instruction
 Use Python 3, any other programming language is not acceptable.
 You can import modules in the Python Standard Library (please check the full list
here). If you want to use any other library, please consult with the instructor.
 Submit uncompressed file(s) in the Dropbox folder via BeachBoard (Not email).
1. Implement multi-layer neural network WITHOUT using external deep learning libraries such as Keras, Caffe, Theano, TensorFlow, PyTorch, …
(a) Find Assignment 3 scratch.ipynb.
(b) Consider a neural network as shown in Figure 1.
 The width of the layer 1 is 2, and the width of the layer 2 is 1.
 The activation functions of the layer 1 are the hyperbolic tangent.
 The activation function of the layer 2 is the sigmoid.
 The loss function is the mean squared error.
(c) (35 points) Write formulas of ∂L
∂W⃗ (1) ,
∂L
∂ ⃗w(2) ,
∂L
∂⃗b
(1) , and ∂L
∂b(2) in the Jupyter notebook
file. Please don’t write down steps of the derivation, final formulas would be
sufficient. Please use LATEX equations in the Jupyter notebook.
(d) (35 points) Implement the model without using any deep learning libraries. You
need to optimize the parameters W⃗ (1), ⃗w(2)
,
⃗b
(1)
, and b