From def1efc24bae239f8e66c5b928c6c9669f584830 Mon Sep 17 00:00:00 2001 From: Thomas Simonini Date: Thu, 9 Jun 2022 17:06:37 +0200 Subject: [PATCH 1/4] Create bonus.md --- unit3/bonus.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 unit3/bonus.md diff --git a/unit3/bonus.md b/unit3/bonus.md new file mode 100644 index 0000000..04d3084 --- /dev/null +++ b/unit3/bonus.md @@ -0,0 +1,16 @@ +# Automatic Hyperparameter Tuning with Optuna + +One of the most critical task in Deep Reinforcement Learning is to **find a good set of training hyperparameters**. + +Optuna + +Optuna is a library that **helps you to automate the search**. In this Unit, we'll study a little bit of the theory behind automatic hyperparameter tuning. We'll then try to optimize the parameters manually and then see how to automate the search using Optuna. + +The content below comes from [Antonin's Raffin ICRA 2022 presentations](https://twitter.com/araffin2), he's one of the founders of Stable-Baselines and RL-Baselines3-Zoo. + +## The learning steps 📚 +1️⃣ 📹 First, let study what's [Automatic Hyperparameter Tuning](https://www.youtube.com/watch?v=AidFTOdGNFQ). Don't forget to 👍 the video 🤗. + +2️⃣👩‍💻 Then let's dive on the [hands-on, where we'll then try to optimize the parameters manually and then see how to automate the search using Optuna](https://youtu.be/ihP7E76KGOI). + +3️⃣ Now that you've learned to use Optuna, why not going back to our **Deep Q-Learning hands-on and implement Optuna to find the best training hyperparameters** 👉 [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/deep-rl-class/blob/main/unit3/unit3.ipynb) From 2750ca840ed7cfab983d8c9db0a831f687c229b4 Mon Sep 17 00:00:00 2001 From: Thomas Simonini Date: Thu, 9 Jun 2022 17:08:40 +0200 Subject: [PATCH 2/4] Adding Unit 3 bonus links --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 577d6df..828c952 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ This course is **self-paced** you can start when you want 🥳. | [Published 🥳](https://github.com/huggingface/deep-rl-class/tree/main/unit1/unit1-bonus) | [Bonus](https://github.com/huggingface/deep-rl-class/tree/main/unit1/unit1-bonus) | | | [Published 🥳](https://github.com/huggingface/deep-rl-class/blob/main/unit2/README.md)| [Q-Learning](https://github.com/huggingface/deep-rl-class/blob/main/unit2/README.md) | [Train an agent to cross a Frozen lake ⛄ and train an autonomous taxi 🚖](https://github.com/huggingface/deep-rl-class/blob/main/unit2/unit2.ipynb). | | [Published 🥳](https://github.com/huggingface/deep-rl-class/tree/main/unit3#unit-3-deep-q-learning-with-atari-games-) | [Deep Q-Learning](https://github.com/huggingface/deep-rl-class/tree/main/unit3#unit-3-deep-q-learning-with-atari-games-) | Train a Deep Q-Learning agent to play Space Invaders using [RL-Baselines3-Zoo](https://github.com/DLR-RM/rl-baselines3-zoo) | -| June, the 10th | Bonus: Optuna Hyperparameter Search | | +| [Published 🥳](https://github.com/huggingface/deep-rl-class/blob/main/unit2/README.md)| [Bonus: Automatic Hyperparameter Tuning using Optuna](https://github.com/huggingface/deep-rl-class/blob/main/unit2/README.md)| | [Q-Learning](https://github.com/huggingface/deep-rl-class/blob/main/unit3/bonus.md) | | | June the 14th | Policy-based methods | 🏗️ | | June the 21th | Actor-Critic Methods | 🏗️ | | June the 28th | Proximal Policy Optimization (PPO) | 🏗️ | From e40861265538fdfca98c38b4809c6bc20f4c83f3 Mon Sep 17 00:00:00 2001 From: Thomas Simonini Date: Thu, 9 Jun 2022 17:09:24 +0200 Subject: [PATCH 3/4] Update links --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 828c952..73cfcc9 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ This course is **self-paced** you can start when you want 🥳. | [Published 🥳](https://github.com/huggingface/deep-rl-class/tree/main/unit1/unit1-bonus) | [Bonus](https://github.com/huggingface/deep-rl-class/tree/main/unit1/unit1-bonus) | | | [Published 🥳](https://github.com/huggingface/deep-rl-class/blob/main/unit2/README.md)| [Q-Learning](https://github.com/huggingface/deep-rl-class/blob/main/unit2/README.md) | [Train an agent to cross a Frozen lake ⛄ and train an autonomous taxi 🚖](https://github.com/huggingface/deep-rl-class/blob/main/unit2/unit2.ipynb). | | [Published 🥳](https://github.com/huggingface/deep-rl-class/tree/main/unit3#unit-3-deep-q-learning-with-atari-games-) | [Deep Q-Learning](https://github.com/huggingface/deep-rl-class/tree/main/unit3#unit-3-deep-q-learning-with-atari-games-) | Train a Deep Q-Learning agent to play Space Invaders using [RL-Baselines3-Zoo](https://github.com/DLR-RM/rl-baselines3-zoo) | -| [Published 🥳](https://github.com/huggingface/deep-rl-class/blob/main/unit2/README.md)| [Bonus: Automatic Hyperparameter Tuning using Optuna](https://github.com/huggingface/deep-rl-class/blob/main/unit2/README.md)| | [Q-Learning](https://github.com/huggingface/deep-rl-class/blob/main/unit3/bonus.md) | | +| [Published 🥳](https://github.com/huggingface/deep-rl-class/blob/main/unit3/README.md)| [Bonus: Automatic Hyperparameter Tuning using Optuna](https://github.com/huggingface/deep-rl-class/blob/main/unit3/README.md)| | [Q-Learning](https://github.com/huggingface/deep-rl-class/blob/main/unit3/bonus.md) | | | June the 14th | Policy-based methods | 🏗️ | | June the 21th | Actor-Critic Methods | 🏗️ | | June the 28th | Proximal Policy Optimization (PPO) | 🏗️ | From 8285f327b2a550fbbef1e779b6846771ce4afb7e Mon Sep 17 00:00:00 2001 From: Thomas Simonini Date: Thu, 9 Jun 2022 17:10:23 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 73cfcc9..04e32ff 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ This course is **self-paced** you can start when you want 🥳. | [Published 🥳](https://github.com/huggingface/deep-rl-class/tree/main/unit1/unit1-bonus) | [Bonus](https://github.com/huggingface/deep-rl-class/tree/main/unit1/unit1-bonus) | | | [Published 🥳](https://github.com/huggingface/deep-rl-class/blob/main/unit2/README.md)| [Q-Learning](https://github.com/huggingface/deep-rl-class/blob/main/unit2/README.md) | [Train an agent to cross a Frozen lake ⛄ and train an autonomous taxi 🚖](https://github.com/huggingface/deep-rl-class/blob/main/unit2/unit2.ipynb). | | [Published 🥳](https://github.com/huggingface/deep-rl-class/tree/main/unit3#unit-3-deep-q-learning-with-atari-games-) | [Deep Q-Learning](https://github.com/huggingface/deep-rl-class/tree/main/unit3#unit-3-deep-q-learning-with-atari-games-) | Train a Deep Q-Learning agent to play Space Invaders using [RL-Baselines3-Zoo](https://github.com/DLR-RM/rl-baselines3-zoo) | -| [Published 🥳](https://github.com/huggingface/deep-rl-class/blob/main/unit3/README.md)| [Bonus: Automatic Hyperparameter Tuning using Optuna](https://github.com/huggingface/deep-rl-class/blob/main/unit3/README.md)| | [Q-Learning](https://github.com/huggingface/deep-rl-class/blob/main/unit3/bonus.md) | | +| [Published 🥳](https://github.com/huggingface/deep-rl-class/blob/main/unit3/bonus.md)| [Bonus: Automatic Hyperparameter Tuning using Optuna](https://github.com/huggingface/deep-rl-class/blob/main/unit3/bonus.md)| | | | | June the 14th | Policy-based methods | 🏗️ | | June the 21th | Actor-Critic Methods | 🏗️ | | June the 28th | Proximal Policy Optimization (PPO) | 🏗️ |