Skip to content

Instantly share code, notes, and snippets.

@bhavbhavyaa
Created July 29, 2021 08:13
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 bhavbhavyaa/e6e3856543b5e418f76b99f57bd264e6 to your computer and use it in GitHub Desktop.
Save bhavbhavyaa/e6e3856543b5e418f76b99f57bd264e6 to your computer and use it in GitHub Desktop.
embedding_dim = 20
model_lstm_bi = keras.Sequential([
keras.layers.Embedding(vocab_size, embedding_dim, input_length = maxlen),
keras.layers.Bidirectional(keras.layers.LSTM(embedding_dim)),
keras.layers.Dense(16, activation = 'relu'),
keras.layers.Dense(5),
])
model_lstm_bi.summary()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment