Shuyib (6) [Avatar] Offline
#1
Hi,

I'm using [iPython 5.1.0, python 3.5.2, Keras 2.0.4, tensorflow 1.1.0 and theano 0.9.0]

I tried importing the imdb data with the code provided in the book. But i kept getting a BadZipFile: File is not a zip file error. Is anyone else experiencing this? I checked out https://keras.io/datasets/ and used this code and it downloaded the data correctly. Last time, i did it, i had to interrupt the download due to a slow internet connection. Maybe this could've cause the problem now.

from keras.datasets import imdb
   ...: 
   ...: (train_data, train_labels), (test_data, test_labels) = imdb.load_data(pa
   ...: th="imdb.zip",num_words=10000)
gfred (5) [Avatar] Offline
#2
I hope you set up your deep learning tools in a virtualenv or conda. Navigate to the folder $/ keras/datasets/ and delete the IMDb folder... Then try again
Shuyib (6) [Avatar] Offline
#3
I am. Yes, it works now.