Skip to content

Instantly share code, notes, and snippets.

@sid321axn
Created August 26, 2020 14:51
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/f3d219429a7a31706fccace236cc088c to your computer and use it in GitHub Desktop.
Save sid321axn/f3d219429a7a31706fccace236cc088c to your computer and use it in GitHub Desktop.
from keras.layers import GRU
K.clear_session()
model_gru = Sequential()
model_gru.add(GRU(7, input_shape=(1, X_train.shape[1]), activation='linear', kernel_initializer='lecun_uniform', return_sequences=False))
model_gru.add(Dense(1))
model_gru.summary()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment