Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q _ wc = np . array ( [ [ 1 , 0 . 3 ] , [ 0 . 3 , 1 ] ]
Qwc nparray; q nparray; Qsic nparray; q nparray; Qic nparray; q nparray; PartA Consider the quadratic functions fwc fsic and fic defined by the quadratic matrices above. For each of these, say whether they are beta smooth andor alpha strongly convex, and if so compute the value of the condition number, kbeta alpha for each function. PartB Compute the best fixed step size for gradient descent, and the best parameters for accelerated gradient descent. For each function, plot the error fxtfx as a function of the number of iterations. For each function, plot these on the same plot so you can compare so you should have plots total. Problem : Gradient Descent and Acceleration In this problem you will explore the impact of illconditioning on gradient descent, and will then see how acceleration can improve the situation. This accelerated gradient descent as the condition number ratio of largest to smallest eigenvalues of the Hessian increases. This is a "toy" problem, but is still instructive regarding the performance of these two algorithms. You will work with the following simple function:
fx x Q x
where Q is a by matrix, as defined below.
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