Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect out of date imports LAB 5 (RNN) T2 #3

Open
sv720 opened this issue Mar 5, 2023 · 2 comments
Open

Incorrect out of date imports LAB 5 (RNN) T2 #3

sv720 opened this issue Mar 5, 2023 · 2 comments

Comments

@sv720
Copy link

sv720 commented Mar 5, 2023

In task 2:
need to add

from keras.utils import pad_sequences

and replace
x_train = sequence.pad_sequences(x_train, maxlen=maxlen)
x_test = sequence.pad_sequences(x_test, maxlen=maxlen)

with:

x_train = pad_sequences(x_train, maxlen=maxlen)
x_test = pad_sequences(x_test, maxlen=maxlen)

@sv720
Copy link
Author

sv720 commented Mar 5, 2023

also need to remove
"from keras_preprocessing.sequence import pad_sequences"
when it appears further down

@sv720
Copy link
Author

sv720 commented Mar 5, 2023

Similarly:
#from keras.layers.wrappers import Bidirectional
by
from keras.layers import Bidirectional

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant