Sunday, May 27, 2018

Reinforcement learning with tensorflow

Please note that I'm using Linux mint.

Reinforcement learning with tensorflow.
Clone the project from github (it's a forked project which is originally dennybritz's):
$ git clone https://github.com/lechatthecat/reinforcement-learning-with-tensorflow
(Note: project will be downloaded in the currect folder.)

Then run the program:
$ cd reinforcement-learning-with-tensorflow/DQN
$ python3.5 dqn.py

Now reinforcement learning starts:

After 700 episodes.

The learned weights are saved and can be loaded later.

Detail


When it is started, it populates the replay memory at first (50000 steps by default). This isn't learning at this point.

After them, it starts learning through 500 episodes training. The higher the mean_q is, the better the machine is learning.

Press ctrl + c to stop the training.