Engineering
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)

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, cowgyrlup124
Explain the difference laminar and turbulent flow. explain it with the shear stress and the velocity profiles.
Answers: 1
image
Engineering, 03.07.2019 14:10, kayabwaller4589
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
image
Engineering, 04.07.2019 18:10, lowkeyqueenk
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
image
Engineering, 04.07.2019 18:10, genyjoannerubiera
Assuming compressible flow of air and that the measurements are done at flagstaff a pitot static tube that gives the difference of total and static pressure measures 0.35 m of mercury. what is the velocity of air? assume the temperature to be 300k. (submit your excel or matlab calculation sheet)
Answers: 1
Do you know the correct answer?
In this homework, you should try to implement a three layer artificial neural network -threelayernet...

Questions in other subjects: