Last active
October 21, 2017 15:29
-
-
Save JannesKlaas/04568ef70f274460113626b9dc56f131 to your computer and use it in GitHub Desktop.
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
num_actions = 3 # [move_left, stay, move_right] | |
hidden_size = 100 # Size of the hidden layers | |
grid_size = 10 # Size of the playing field | |
def baseline_model(grid_size,num_actions,hidden_size): | |
#seting up the model with keras | |
model = Sequential() | |
model.add(Dense(hidden_size, input_shape=(grid_size**2,), activation='relu')) | |
model.add(Dense(hidden_size, activation='relu')) | |
model.add(Dense(num_actions)) | |
model.compile(sgd(lr=.1), "mse") | |
return model |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment