Skip to content

Issues with the IMDB Dataset: Chapter 6 #3

Description

@Bruner10

Hi I am trying to do the LSTM project and I can't seem to even get the dataset. I have tried the code in the book and in your code, and I keep getting an error. It says that "allow_pickle = False". To get around this I tried using np.load() but then I got an error "too many values to unpack (expected 2)". Below are the 2 codes I used.

training_set, testing_set = imdb.load_data(index_from = 3)
X_train, y_train = training_set
X_test, y_test = testing_set

training_set, testing_set = np.load("imdb.npz", allow_pickle=True)
X_train, y_train = training_set
X_test, y_test = testing_set

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions