Skip to content

Instantly share code, notes, and snippets.

@maxbrenner-ai
Created November 20, 2018 02:45
Show Gist options
  • Save maxbrenner-ai/358f77c5c55c1af1bacf29b390f742fa to your computer and use it in GitHub Desktop.
Save maxbrenner-ai/358f77c5c55c1af1bacf29b390f742fa to your computer and use it in GitHub Desktop.
agent neural network model
def _build_model(self):
model = Sequential()
model.add(Dense(self.hidden_size, input_dim=self.state_size, activation='relu'))
model.add(Dense(self.num_actions, activation='linear'))
model.compile(loss='mse', optimizer=Adam(lr=self.lr))
return model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment