SHARE
TWEET

Untitled

a guest Jun 25th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. seq_len = 20000; n_classes = 4
  2. inputs = ll.Input(shape=(seq_len,))
  3. x = ll.Embedding(len(word_index), 1000)(inputs)
  4. x = ll.LSTM(units=100, activation='relu', return_sequences=True)(x)
  5. outputs = ll.Dense(units = n_classes, activation='softmax')(x)
  6. model = Model(inputs, outputs)
  7. model.summary()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top