Skip to content

Instantly share code, notes, and snippets.

@Theo-
Created February 18, 2017 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Theo-/02f782231428aa1ca86cb485c8da106b to your computer and use it in GitHub Desktop.
Save Theo-/02f782231428aa1ca86cb485c8da106b to your computer and use it in GitHub Desktop.
from keras.preprocessing import sequence
max_review_length = 1600
X_train = sequence.pad_sequences(X_train, maxlen=max_review_length)
X_test = sequence.pad_sequences(X_test, maxlen=max_review_length)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment