Model = Sequential

model.add (LSTM(return_sequences = True, units = 50, input_shape = (50,1)))

model.add (LSTM(512))

model.add (Dense(1,activation = “linear”))

model.compile (loss = “mse”, optimizer = “adam”, metrics = [“acc”])

history = model.fit (train_X, train_y, epochs = 325, batch_size = 300, validation_split = 0.09)