[Solved]1 Consider Following Function G P 1 Sin 2 Q37200091

1. Consider the following function: g(p) = 1 + sin ( for-2<p<2. (a) Write a code to implement the batched steepest descent backpropagation algorithm (SDBP) to b) Write a code to implement the batched conjugate gradient backpropagation algorithm (CGBP) (c) Write a code to implement the batched momentum backpropagation algorithm (MOBP) to ap approximate this function. to approximate this function proximate this function Use a 1-2-1 neural network, .e., 1 input layer, 2 hidden layers and 1 output layer with the transfer functions specified in the example in page 370 of the textbook. Choose the initial weights and biases to be random numbers uniformly distributed between -0.5 and 0.5. Experiment with several different values for the learning rate a, and use several different initial conditions. Generate a training set of 80 data points from the function and use a test set of 20 randomly chosen data points. Plot the training error as a function of the iterations, and give the final test error. Use batch sizes of 1 and 5. Note that a batch size of 1 will yield the non-batched version of each algorithm. Show transcribed image text 1. Consider the following function: g(p) = 1 + sin ( for-2
Expert Answer
Answer to 1. Consider the following function: g(p) = 1 + sin ( for-2… . . .
OR

