Multiinput Keras
Creating the Labels
from sklearn import preprocessing
from keras.utils import to_categorical
label_encoder = preprocessing.LabelEncoder()
# the y that is being passed in is a pandas series of categorical data
y = label_encoder.fit_transform(y)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=1)
y_train = to_categorical(y_train)
y_test = to_categorical(y_test)
# prints the classes of y
print(label_encoder.classes_)Preparing Text Input
Creating vectors for each word provided by gloVe
Converting text to sequences
Creating word embeddings
Preparing meta data
Building the Model
Training the Model
Last updated