240
笔下虽有千言,胸中实无一策

学习笔记 | Morvan - Reinforcement Learning, Part 4: Deep Q Network

Deep Q Network

Deep Q Network 的简称叫 DQN, 是将 Q learning 的优势 和 Neural networks 结合了. 

Notes

Psudocode

Deep Q-learning Algorithm

This gives us the final deep Q-learning algorithm with experience replay:

Screen Shot 2015-12-21 at 11.23.43 AM

There are many more tricks that DeepMind used to actually make it work – like target network, error clipping, reward clipping etc, but these are out of scope for this introduction.

The most amazing part of this algorithm is that it learns anything at all. Just think about it – because our Q-function is initialized randomly, it initially outputs complete garbage. And we are using this garbage (the maximum Q-value of the next state) as targets for the network, only occasionally folding in a tiny reward. That sounds insane, how could it learn anything meaningful at all? The fact is, that it does.

Extension

 

posted @ 2017-01-18 05:08  CasperWin  阅读(512)  评论(0编辑  收藏  举报