September 2018
Intermediate to advanced
296 pages
9h 10m
English
We begin by importing certain modules from Keras: layers, optimizers, models, and the backend. These modules will help us to construct our neural network:
from keras import layers, models, optimizersfrom keras import backend as K
class Critic: """Critic (Value) Model.""" def __init__(self, state_size, action_size): """Initialize parameters and build model. Params ====== state_size (int): Dimension of each state action_size (int): Dimension of each action """ self.state_size = state_size self.action_size = action_size self.build_model()
Read now
Unlock full access