Skip to content

marianodepaula/DQN_toy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DQN

The DQN algorithm used for solving Gym's cartpole environment.
I changed the reward function:

reward = np.cos(2*next_state[3]) 

Requirements

  • Tensorflow
  • Numpy
  • Gym

Run

There is a constant:

DEVICE = '/gpu:0'

Set it to '/cpu:0' if you don't have one.

And then run as:

$ python main.py

About

DQN used in gym without cnn

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%