This repository contains my personal learning notes and practice code for reinforcement learning, based on the book "PyTorch 1.x Reinforcement Learning Cookbook". All code is handwritten by me while following the book, aiming to build a solid foundation in reinforcement learning.
- Book: PyTorch 1.x Reinforcement Learning Cookbook
- Framework: This project mainly uses
gymfor environments, along with common Python libraries such asnumpy,pygame, andmatplotlib.
It is recommended to use conda to create an isolated environment:
conda create -n my_env python==3.11.5
conda activate my_env
pip install gym # 0.26.2
pip install numpy==1.23.5
pip install pygame # 2.6.1
pip install matplotlib # if you want to draw plotsThis project is for educational and personal learning purposes only.
All code is written manually for better understanding and reinforcement of key concepts.