Guest User

Untitled

a guest
May 25th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. model = Sequential()
  2. model.add(pretrained_embedding_layer(word_to_vec_map, word_to_index))
  3. model.add(GRU(128, dropout=0.2, return_sequences=True))
  4. model.add(GRU(128, dropout=0.2))
  5. model.add(Dense(1))
  6. model.add(Activation('sigmoid'))
  7.  
  8. model.compile(loss='binary_crossentropy',
  9. optimizer='adam',
  10. metrics=['accuracy'])
Add Comment
Please, Sign In to add comment