Stat 467 Homework 1
Due on Tuesday, 2/15 by 11:59pm EST
1. We would like to conduct an analysis on a subset of MNIST data with digits from 0 to 4
only. Without running the code in Python, describe the architecture for the following
deep learning model, including number of layers, number of units in each layer (layer
width), number of parameters in each layer (show the details of calculations).
network.mlp = models.Sequential()
network.mlp.add(layers.Dense(1024, activation=’relu’, input_shape=(28 * 28,)))
network.mlp.add(layers.Dropout(0.3))
network.mlp.add(layers.Dense(512, activation=’relu’))
network.mlp.add(layers.Dropout(0.5))
network.mlp.add(layers.Dense(256, activation=’relu’, kernel_regularizer=regularizers.l1(0.001)))
network.mlp.add(layers.Dropout(0.2))
network.mlp.add(layers.Dense(5, activation=’softmax’))
2. Consider the following two-layer network.
The weights and bias for X1(1) is (5,-3) and 2, respectively. The weights and bias for X2(1) is
(-2,6) and -1, respectively. The weights and bias for Y are (1,1) and 1, respectively. The
activation function is ReLU for X1(1) and X2(1) and identity function for Y. We have two
data points: (x11=1, x12=1, y1=5) and (x21=1, x22=-1, y2=8).
(a) Calculate the prediction for two data points using the above network. Calculate the
total square loss value. Show the details for your calculation.
(b) Now we add a dropout with rate 0.5 to the first hidden layer. Assume X2(1) is
dropped when making the prediction for data point (x11=1, x12=1,y1=5) and X1(1) is
dropped when making the prediction for data point (x21=1, x22=-1,y2=8). Calculate
the prediction for two data points and the total square loss value. Show the details
for your calculation.
3. Conduct the analysis on MNIST data using multi-layer neuron networks (treating each
image as a vector). Tune all hyper-parameters that you think matter. Report your best
model and accuracy on the test set. Show the details of your tuning process. Submit
your complete code in notebook style (same as colab illustrated in class).
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more