Skip to content

Instantly share code, notes, and snippets.

@sid321axn
Created August 26, 2020 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sid321axn/fb02530a950c905b6cd461568fce7ffa to your computer and use it in GitHub Desktop.
Save sid321axn/fb02530a950c905b6cd461568fce7ffa to your computer and use it in GitHub Desktop.
from keras.layers import LSTM
K.clear_session()
model_lstm = Sequential()
model_lstm.add(LSTM(50, input_shape=(1, X_train.shape[1]), activation='relu', kernel_initializer='lecun_uniform', return_sequences=False))
model_lstm.add(Dense(1))
model_lstm.summary()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment