March 2019
Intermediate to advanced
184 pages
4h 57m
English
We will first code the dqn.py file. This requires the following steps:
import gymimport itertoolsimport numpy as npimport osimport randomimport sysimport matplotlib.pyplot as pltimport tensorflow as tffrom collections import deque, namedtuplefrom model import *from funcs import *
GAME = "BreakoutDeterministic-v4" # "BreakoutDeterministic-v0" ...
Read now
Unlock full access