Skip to content

Easiest way to understand reinforcement learning algorithms using pytorch

License

Notifications You must be signed in to change notification settings

HectorPulido/Easiest-deep-rl-algorithm-with-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Easiest deep reinforcement learning algorithm with pytorch

Here it is, the simplest deep reinforcement learning algorithm ever written in pytorch.

How it works

  1. Pick your model and create your agent
  2. Play a lot of sessions
  3. Select the most successful sessions in terms of reward
  4. Trair your agent with that sessions
  5. Repeat

Why Does It Work ?

This is a fancy genetic algorithm, the model can learn from the best training data of the sessions. The problem with this is that the unsuccessful sessions will be discarted, so our agent will not learn from it's failures.

Perfomance

This algorithm has a poor performance, a lot of sessions are just discarted, but it works well at the end.

Average reward vs iterations

graph

How it looks like

animation

License

This project is under MIT License, use it as you want.

More interesting projects

I have a lot of fun projects, check this:

Blockchain

Machine learning

You also can follow me in social networks

About

Easiest way to understand reinforcement learning algorithms using pytorch

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages