Created
July 29, 2021 08:13
-
-
Save bhavbhavyaa/e6e3856543b5e418f76b99f57bd264e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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