![]() |
Homework for Neural Network
Professor Yaser,
In lecture 9 Q & A. You mentioned that you used to have a homework programming assignment for creating a Neural Network, but that was removed. Could you please post that homework assignment. It would be very helpful. Thank you |
Re: Homework for Neural Network
Here are the old homework problems (not required in this course, and there is no technical support).
![]() Following the class notes, implement the backpropagation algorithm that takes as input a network architecture ( ![]() and a set of examples ![]() ![]() ![]() The algorithm should perform gradient descent on one example at a time, but should also keep track of the average error for all the examples in each epoch. Try your algorithm on the data set in http://work.caltech.edu/train.dat (the first two columns are the input and the third column is the output). Test the convergence behavior for architectures with one hidden layer ( ![]() ![]() parameters: (i) The initial weight values chosen independently and randomly from the range (-0.02,0.02), the range (-0.2,0.2), or the range (-2,2). (ii) The learning rate ![]() ![]() ![]() ![]() (iii) Sufficient number of epochs to get the training error to converge (within reason). Turn in your code and a single parameter combination that resulted in good convergence for the above architectures. ![]() Using your backpropagation program and data from the above problem, train different neural networks with ![]() output layer) where the number of neurons in the hidden layer is 1, 2, 3, 4, or 5. Use the following out-of-sample data to test your networks: http://work.caltech.edu/test.dat Plot the training and test errors for each network as a function of the epoch number (hence the `intermediate' networks are evaluated using the test data, but the test data is not used in the backpropagation). Repeat the experiment by reversing the roles of the training and test sets (you may need to readjust the parameter combination from the previous problem), and plot the training and test errors again. Briefly analyze the results you get. |
Re: Homework for Neural Network
Thank you Professor Yaser.
|
All times are GMT -7. The time now is 06:34 PM. |
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.