Exercises (lab04)

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

Quiz 1

Differentiable functions

Quiz 2

Automatic differentiation

Quiz 3

Gradient descent

Quiz 4

Convex function of one variable

Quiz 5

Convex function of multiple variables

Quiz 6

Nonconvex function of one variable

Quiz 7

Nonconvex function of multiple variables

Quiz 8

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.