No module named ‘keras.datastets’

  keras, python, sentiment-analysis

I am trying to import imdb using keras.dataset

from keras.datasets import imdb

Although Keras package is successfully installed I am getting the below module error

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-6e3ce26e10f3> in <module>()
      1 import numpy
----> 2 from keras.datastets import imdb
      3 from matplotlib import pyplot

ModuleNotFoundError: No module named 'keras.datastets'

I am using google colabs. how can I solve this issue and import imdb data successfully
Kindly help on this regard.

Source: Python Questions

LEAVE A COMMENT