Need to specify encoding as underlying data is not utf-8.

This commit is contained in:
Jay Nayegandhi 2025-08-10 23:32:29 -04:00
parent 8c1c4dd5b4
commit e4defc108f
1 changed files with 1 additions and 1 deletions

View File

@ -638,7 +638,7 @@
"# In this case correct the link to the dataset below as well.\n",
"\n",
"with gzip.open('../../data/mnist.pkl.gz', 'rb') as mnist_pickle:\n",
" MNIST = pickle.load(mnist_pickle)"
" MNIST = pickle.load(mnist_pickle, encoding='latin1')"
]
},
{