Exercises (lab07)

Exercises (lab07)#

This ungraded assignment is composed of 9 exercises on the choice of step-size for 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 Chapter 6 of the course notes available on Blackboard.

Instructions#

  • Download a copy of this notebook from Blackboard.

  • Run jupyter notebook and open the .ipynb file.

    • Keep the notebook inside the folder it was downloaded with.

  • Work alone or with a partner to solve the quizzes.

    • You are supposed to fill in or modify the code marked with the comment # YOUR CODE HERE

    • You can check your answers by running the tests provided at the end of each quiz

Contents#

Exercise

Topic

Quiz 1

Gradient descent

Quiz 2

Scheduling

Quiz 3

Linear model

Quiz 4

Mean square error

Quiz 5

Linear regression

Quiz 6

Quadratic model

Quiz 7

Quadratic regression

Quiz 8

Nonlinear model

Quiz 9

Nonlinear regression

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.