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
The drive force for diffusion is 7 fick's first law can be used to solve the non-steady state diffusion. a)-true b)-false
Answers: 1
question
Engineering, 04.07.2019 18:10
Apipe with an outside diameter of 15 cm is exposed to an ambient air and surrounding temperature of -20°c. the pipe has an outer surface temperature of 65°c and an emissivity of 0.85. if the rate of heat loss from the pipe surface is 0.95 kw per meter of length, the external convective heat transfer coefficient (h) is: (a) 12.5 w/m"k (b) 18.6 w/mk (c) 23.7 w/mk (d) 27.9 w/mk (e) 33.5 w/mk
Answers: 1
question
Engineering, 04.07.2019 18:10
Calculate the bore of a cylinder that has a stroke of 18 inches and an extension time of 6 seconds at a flow rate of 4 gal/min.
Answers: 3
question
Engineering, 04.07.2019 18:20
Avolume of 2.65 m3 of air in a rigid, insulated container fitted with a paddle wheel is initially at 264 k, 5.6 bar. the air receives 432 kj by work from the paddle wheel. assuming the ideal gas model with cv = 0.71 kj/kg • k, determine for the air the amount of entropy produced, in kj/k
Answers: 2
You know the right answer?
In this homework, you should try to implement a three layer artificial neural network -threelayernet...
Questions
question
Biology, 06.10.2019 07:00
question
Mathematics, 06.10.2019 07:00