Importing all the dependencies

We will be using numpy, gym, matplotlib, keras, tensorflow and the keras-rl package in this segment of the exercise. Here, Tensorflow will be used as the backend for Keras. You can install these packages with pip.

import numpy as np
import gym
from keras.models import Sequential
from keras.layers import Dense, Activation, Flatten
from keras.optimizers import Adam
from rl.agents import SARSAAgent
from rl.policy import EpsGreedyQPolicy
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.15.43