• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes

Problem :

Getting bellow error while executing numpy arrays
unicodedecodeerror: 'ascii' codec can't decode byte 0x90 in position 614: ordinal not in range(128)
by (6.9k points)  

1 Answer

0 votes

Solution :

I had the similar error in the past but bellow code worked for me. 

Note : The encoding='latin1' is the most important part.

# read in data from pickle file created with Load_Data.py
pickle_file = 'mnist.pkl'
with open(pickle_file, 'rb') as f:
    train_set, valid_set, test_set = pickle.load(f, encoding='latin1')

Further Readings:

by (36.1k points)