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 18:10
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
question
Engineering, 04.07.2019 18:20
What is the heat treatment of metals? what is the benefit of it? why and how it's useful? answer in details, do not write by hand.
Answers: 3
question
Engineering, 04.07.2019 18:20
Find the minimum film thickness for a journal bearing with the data below. shaft diameter, d-50 mm, clearance ratio, cdratio? 0.001, shaft speed, n 2000 rpm; bearing length. i 200 mm; eccentricity ration, ? -0.55. ( note, cdratio-ca/d) the minimum film thickness is um
Answers: 2
question
Engineering, 04.07.2019 18:20
For each of the following process: a) sketch the p-v diagram, b)sketch t-s diagram, c) sketch t-v diagram, d) sketch the boundary work on one of the diagrams (a, b or c) and e) sketch the reversible heat transfer on one of the diagrams (a, b or c): 1- isobaric process from compressed liquid to superheated vapor 2- isothermal process from compressed liquid to superheated vapor 3- isentropic process from compressed liquid to superheated vapor
Answers: 3
You know the right answer?
In this homework, you should try to implement a three layer artificial neural network -threelayernet...
Questions
question
Chemistry, 25.09.2019 14:10
question
Mathematics, 25.09.2019 14:10
question
Mathematics, 25.09.2019 14:10
Questions on the website: 13722363