Created
October 18, 2020 19:33
-
-
Save negedng/ac695e4000dc69dd8c4a502cd1b58aef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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