4.7. Exercises (lab04)#
This ungraded assignment is composed of 8 exercises on gradient descent. In order to understand and solve the exercises, and more generally to gain the maximum benefit from this tutorial, it is highly recommended that you read the Chapter 4.
4.7.1. Contents#
Exercise |
Topic |
---|---|
Differentiable functions |
|
Automatic differentiation |
|
Gradient descent |
|
Convex function of one variable |
|
Convex function of multiple variables |
|
Nonconvex function of one variable |
|
Nonconvex function of multiple variables |
|
Elimination of a “simple” equality constraint |
4.7.2. Required packages#
For this assignment, you need to import the following packages.
Numpy - The library for scientific computing in Python.
Matplotlib - The library for plotting graphs in Python.
Autograd - The library for automatic differentiation of Numpy code.