Exercises (lab02)

2.7. Exercises (lab02)#

This ungraded assignment is composed of 15 exercises on grid search, random search, and cross-entropy method. 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 2.

2.7.1. Contents#

Part 1. Grid search

Exercise

Topic

Quiz 1

Random sampling

Quiz 2

Step 1

Quiz 3

Step 2

Quiz 4

Step 3

Quiz 5

Grid search

Quiz 6

Cost function

Quiz 7

Optimization

Part 2. Random search

Exercise

Topic

Quiz 8

Step 1

Quiz 9

Step 2

Quiz 10

Random search

Quiz 11

Optimization

Part 3. Cross-entropy method

Exercise

Topic

Quiz 12

Step 1

Quiz 13

Step 2

Quiz 14

Cross-entropy method

Quiz 15

Optimization

2.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.