Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def buildManyToOneModel(shape):
- model = Sequential()
- model.add(LSTM(10, input_shape=(shape[1], shape[2])))
- # output shape: (1, 1)
- model.add(Dense(1))
- model.compile(loss="mean_square_error", optimizer="adam")
- model.summary()
- return model
Add Comment
Please, Sign In to add comment