Skip to content

Instantly share code, notes, and snippets.

@arseniyturin
Created November 10, 2019 01:51
Show Gist options
  • Save arseniyturin/fa57e582468c8d8b7374a84acf4eed96 to your computer and use it in GitHub Desktop.
Save arseniyturin/fa57e582468c8d8b7374a84acf4eed96 to your computer and use it in GitHub Desktop.
model = Sequential()
model.add(LSTM(100, activation='relu', return_sequences=True, input_shape=(n_steps, n_features)))
model.add(LSTM(50, activation='relu', return_sequences=False))
model.add(Dense(10))
model.add(Dense(1))
model.compile(optimizer='adam', loss='mse', metrics=['mae'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment