Guest User

Untitled

a guest
Apr 21st, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. def buildManyToManyModel(shape):
  2. model = Sequential()
  3. model.add(LSTM(10, input_shape=(shape[1], shape[2]), return_sequences=True))
  4. # output shape: (5, 1)
  5. model.add(TimeDistributed(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