My implementation of REINFORCE RL algorithm from ground up.
See my video here: REINFORCE: Reinforcement Learning Most Fundamental Algorithm
conda env create -f environment.yml
conda activate reinforce
pip install -r requirements.txt
See p.328 of Reinforcement Learning 2nd Ed. Sutton & Barto.
--Andriy Drozdyuk
To see how to implement this in tianshou RL framework see my implementation here https://github.com/drozzy/reinforce_tianshou.