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
from sklearn.cross_validation import train_test_split | |
from keras.preprocessing import sequence, text | |
from keras.models import Sequential | |
from keras.layers import (Dense, Dropout, Activation, Embedding, LSTM, | |
Convolution1D, MaxPooling1D) | |
# Embedding | |
max_features = 20000 | |
maxlen = 100 | |
embedding_size = 32 |