subject
Engineering, 26.10.2019 02:43 lesliealvarado1022

In this homework, you should try to implement a three layer artificial neural network -threelayernet based one twolayernet. note that since you have three layers in the network, there should be three fc (fully connected) layers and two activation layers (use relu). the h2 in __init__ function is the output dimension of the second fc layer and the input dimension of the third fc layer.

(a) train the twolayernet with default parameter setting, set iteration=25000, try both optimizers ‘sgd’ and ‘sgdmomentum‘, report the training and testing accuracy. plot the training loss over iterations like the below image. (5 points)
training loss over iterations. x-axis represents the training iterations/100, y is the training loss.

(b) implement the threelayernet by yourself. set h1=300, h2=100, and train the threelayernet model 25000 iterations. report accuracy on both training and testing dataset and draw the loss figure. (10 points)
(c) train lenet5 model 2000 iterations, report the accuracy on testing dataset. (5 points)

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 08:10
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 12:10
On a average work day more than work place firs are reorted
Answers: 1
question
Engineering, 04.07.2019 18:10
The temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
Answers: 2
You know the right answer?
In this homework, you should try to implement a three layer artificial neural network -threelayernet...
Questions
question
Mathematics, 24.03.2021 08:20
question
Social Studies, 24.03.2021 08:20
question
Mathematics, 24.03.2021 08:20
question
Mathematics, 24.03.2021 08:20
question
Mathematics, 24.03.2021 08:20
question
Mathematics, 24.03.2021 08:30
question
Mathematics, 24.03.2021 08:30
question
Mathematics, 24.03.2021 08:30
Questions on the website: 13722363