def load_data(dataset='data.pkl.gz'):
dataset = os.path.join(os.path.split(__file__)[0], '../data', dataset)
f = gzip.open(dataset, 'rb')
train_set, valid_set, test_set = pickle.load(f)
f.close()
when I want to call this file (load_data) in another file, I get this error message.
in load_data
train_set, valid_set, test_set = pickle.load(f)
ValueError: too many values to unpack (expected 3)
print(pickle.load(f))? - Patrick Haughpickle.load(f)unpacks to more than three values - Patrick Haugh