Answered step by step
Verified Expert Solution
Question
1 Approved Answer
13. Write a short program to execute the Gradient Descent (GD) algorithm as described in class. Recall that the key steps in GD are as
13. Write a short program to execute the Gradient Descent (GD) algorithm as described in class. Recall that the key steps in GD are as follows: X = random x, = X-1 - nVf(x,-1) = Apply GD to approximately solve for the global minimum of the function f(x, y) = 12 3x2 - 6x - y2 + +12y. , You will run (3) sets of experiments using different values for n: (i) n = .1, (ii) n =.01, and (ii) n =.001. Run GD for 500 steps for each experiment; in each case initialize Xo (-10,10] [-10,10). Report the best performance out of 10 trials for each of the different n value cases. Provide some comments and analysis about your results. Please include your (concise) GD code in your assignment write-up
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started