Guest User

Untitled

a guest
Apr 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. def buildManyToOneModel(shape):
  2. model = Sequential()
  3. model.add(LSTM(10, input_shape=(shape[1], shape[2])))
  4. # output shape: (1, 1)
  5. model.add(Dense(1))
  6. model.compile(loss="mean_square_error", optimizer="adam")
  7. model.summary()
  8. return model
Add Comment
Please, Sign In to add comment