Skip to content

Instantly share code, notes, and snippets.

@abhishek-shrm
Created September 22, 2020 17:37
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 abhishek-shrm/5ac37f49da725c08ad4bfa873b72064c to your computer and use it in GitHub Desktop.
Save abhishek-shrm/5ac37f49da725c08ad4bfa873b72064c to your computer and use it in GitHub Desktop.
from keras.preprocessing.sequence import pad_sequences
# Padding with zero
train_seq=pad_sequences(train_seq,maxlen=100,padding='post')
test_seq=pad_sequences(test_seq,maxlen=100,padding='post')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment