These are the exercises for the course "Reinforcement Learning from Scratch" that I give at Sioux Technologies.
If you want to run these exercises on your own computer you have to install the following packages.
-
Install an Anaconda environment like Miniconda (https://docs.conda.io/en/latest/miniconda.html) for Python 3.x.
-
Open an "Anaconda prompt" and type the following command to create a new python environment.
conda create -n rl_from_scratch python==3.11.* pytorch torchvision torchaudio -c pytorchOr if you have an NVIDIA GPU:
conda create -n rl_from_scratch python==3.11.* pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia -
Activate the environment.
conda activate rl_from_scratch -
Install additional packages.
conda install ipython ipykernel swig pip install stable_baselines3[extra] pip install gymnasium[box2d] -
Open this repository with Visual Studio Code and select
rl_from_scratchas the Python environment. -
Have fun