April 2018
Intermediate to advanced
334 pages
10h 18m
English
We have already discussed the environment while implementing Q-learning for the mountain car problem. Let's dive directly into implementing a deep Q-network to solve the mountain car problem. First, we will import the required libraries, using the following code:
#importing the dependenciesimport numpy as npimport tensorflow as tfimport gym
Let's discuss our class DQN, which holds the architecture of the deep Q-network:
Read now
Unlock full access