Sequence Models
#c3w1a1
AI Discussions
I’m stuck on the djmodel function
I think that the problem is the version of tensorfow keras and numpy packages
I’m using a recent version
And I always have problems
Could you please tell me version works corecctly for this assignment
Hi @somiaai,
Using latest packages might run into errors. You have to use the packages the notebook uses to run.
In the cell of the notebook you can run:
!pip list
This will show you all the packages and their versions used by the notebook. You can then cross check with the versions you are using.
Best,
Mubsi
Additionally, if you want to check for a specific library and its version you can use (for example, numpy):
!pip show numpy
I solved the problem using
python 3.6
numpy ‘1.22.4’
keras ‘2.6.0’
tensorflow ‘2.6.0’
I upgraded typing-extension
I had an error importing Adam and to_categorical from Keras, so i used TensorFlow:
from tensorflow.keras.utils import to_categorical
from tensorflow.keras.optimizers import Adam
Finally, I disable the eager execution:
tf.compat.v1.disable_eager_execution()
I hope this can help other people