Skip to content

PyTorch implementations of algorithms from "Reinforcement Learning: An Introduction by Sutton and Barto", along with various RL research papers.

License

Notifications You must be signed in to change notification settings

VachanVY/Reinforcement-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reinforcement-Learning


Algorithms from Reinforcement Learning: An Introduction by Andrew Barto and Richard S. Sutton

Algorithms Environment (Name & Goal) Environment GIF Plots
Policy Iteration Frozen Lake: The player makes moves until they reach the goal or fall in a hole. The lake is slippery (unless disabled) so the player may move perpendicular to the intended direction sometimes. pol pol -
Value Iteration Taxi-v3: The taxi starts at a random location within the grid. The passenger starts at one of the designated pick-up locations. The passenger also has a randomly assigned destination (one of the four designated locations). Gridworld Gridworld Gridworld -
Monte Carlo Exploring Starts Blackjack-v1: a card game where the goal is to beat the dealer by obtaining cards that sum to closer to 21 (without going over 21) than the dealer's cards Blackjack Graph Graph
Sarsa CliffWalking-v0: Reach goal without falling CliffWalking Graph Sarsa: Orange
Q-learning CliffWalking-v0: Reach goal without falling CliffWalking Graph Q-learning: Blue
Expected Sarsa CliffWalking-v0: Reach goal without falling CliffWalking Graph Expected Sarsa: Green
Double Q-learning CliffWalking-v0: Reach goal without falling CliffWalking Graph Double Q-learning: Red
n-step Bootstrapping (TODO) - - -
Dyna-Q ShortcutMazeEnv (custom made env): Reach the goal dodging obstacles maze0 maze compare by steps
Prioritized Sweeping ShortcutMazeEnv (custom made env): Reach the goal dodging obstacles maze0 steps sum rewards
Monte-Carlo Policy-Gradient CartPole-v1: goal is to balance the pole by applying forces in the left and right direction on the cart. CartPole Graph
REINFORCE with Baseline CartPole-v1: goal is to balance the pole by applying forces in the left and right direction on the cart. CartPole -
One-Step Actor-Critic CartPole-v1: goal is to balance the pole by applying forces in the left and right direction on the cart. CartPole Graph
Policy Gradient on Continuous Actions (TODO) - - -
On-policy Control with Approximation (TODO) - - -
Off-policy Methods with Approximation (TODO) - - -
Eligibility Traces (TODO) - - -

Deep Reinforcement Learning: Paper Implementations

Year Paper Environment (Name & Goal) Environment GIF Plots
2013 Playing Atari with Deep Reinforcement Learning ALE/Pong-v5 - You control the right paddle, you compete against the left paddle controlled by the computer. You each try to keep deflecting the ball away from your goal and into your opponent’s goal.
2014 Deep Deterministic Policy Gradient (DDPG) Pendulum-v1 - The pendulum starts in a random position and the goal is to apply torque on the free end to swing it into an upright position, with its center of gravity right above the fixed point. Pendulum Plot
2017 Proximal Policy Optimization (PPO) -- Discrete Action Space LunarLander-v3: This environment is a classic rocket trajectory optimization problem. According to Pontryagin’s maximum principle, it is optimal to fire the engine at full throttle or turn it off opaos Plot
2017 Proximal Policy Optimization (PPO) -- Continuous Action Space HalfCheetah-v5: The goal is to apply torque to the joints to make the cheetah run forward (right) as fast as possible, with a positive reward based on the distance moved forward and a negative reward for moving backward. opaos Plot Plot
2018 Soft Actor-Critic (SAC) InvertedDoublePendulum-v5: The cart can be pushed left or right, and the goal is to balance the second pole on top of the first pole, which is in turn on top of the cart, by applying continuous forces to the cart. Plot Plot

Blog...

Star History

Star History Chart