Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 622 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 622 Bytes

Deep Q Learning

To implement Naive Deep Q Learning one basic example.

You can run this:

$ python3 -m venv env
$ source env/bin/activate
$ pip3 install -r requirements.txt
$ cd naive_deep_Q_learning
$ python3 cartpolegame.py 

or you can use docker:

$ docker build -t rl-example .
$ docker run rl-example

If you want to change game in gym library, you should change "game_name" and also you can change layers for deep Q learning (using layer_dims):

from training import TrainGame

game = TrainGame(game_name='CartPole-v1', n_games=10_000, layer_dims=[128, 128])
game.training()