Created
November 20, 2018 02:45
-
-
Save maxbrenner-ai/358f77c5c55c1af1bacf29b390f742fa to your computer and use it in GitHub Desktop.
agent neural network model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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