Aug 25, 2017 · 1 min read
To predict the output i tried
top_words = 10000
(X_train, y_train), (X_test, y_test) = imdb.load_data(nb_words=top_words)
model = load_model(‘sentimentanalysis.h5’) # using the saved model
predictions = model.predict([X_test])
but getting expected embedding_1_input to have shape (None, 1600) but got array with shape (25000, 1)