InterviewSolution
Saved Bookmarks
| 1. |
What is the output of the program below? Assume that it is being executed using Python 3.x environment. Will the session close automatically or remain open at the end of the program. |
|
Answer» Gradient DESCENT is a first-order iterative optimization algorithm for finding the minimum of a FUNCTION. To find a local minimum of a function using gradient descent, one takes steps proportional to the negative of the gradient (or approximate gradient) of the function at the current point. If, instead, one takes steps proportional to the positive of the gradient, one APPROACHES a local maximum of that function; the procedure is then known as gradient ascent.
Below is an illustrative diagram of gradient descent on a series of level sets. |
|