March 2019
Intermediate to advanced
184 pages
4h 57m
English
We will now code DDQN in TensorFlow to play Atari Breakout. As before, we have three Python files:
funcs.py and model.py are the same as used before for DQN in Chapter 3, Deep Q-Network (DQN). The ddqn.py file is the only code where we need to make changes to implement DDQN. We will use the same dqn.py file from the previous chapter and make changes to it to code DDQN. So, let's first copy the dqn.py file from before and rename it ddqn.py.
We will summarize the changes we will make to ddqn.py, which are actually quite minimal. We will still not delete the DQN-related lines of code in the file, and instead, use if loops to choose between the two algorithms. This helps ...
Read now
Unlock full access