daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Dec 15th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MaxDescriptionLen = 0
  2. for item in descriptions:
  3.   if len(item) >  MaxDesscriptionLen:
  4.     MaxDesscriptionLen = len(item)
  5. x_train = sequence.pad_sequences(x_train, maxlen=MaxDesscriptionLen)
  6. x_test = sequence.pad_sequences(x_test, maxlen=MaxDesscriptionLen)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top