Skip to content

Instantly share code, notes, and snippets.

@negedng
Created October 18, 2020 19:33
Show Gist options
  • Save negedng/ac695e4000dc69dd8c4a502cd1b58aef to your computer and use it in GitHub Desktop.
Save negedng/ac695e4000dc69dd8c4a502cd1b58aef to your computer and use it in GitHub Desktop.
(x_train, y_train), (x_val, y_val) = keras.datasets.imdb.load_data(
num_words=max_features
)
x_train = keras.preprocessing.sequence.pad_sequences(x_train, maxlen=maxlen)
x_val = keras.preprocessing.sequence.pad_sequences(x_val, maxlen=maxlen)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment