You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**3.** Decompress the 4 files and create 4 [`ndarrays`](https://numpy.org/doc/stable/reference/arrays.ndarray.html), saving them into a dictionary. Each original image is of size 28x28 and neural networks normally expect a 1D vector input; therefore, you also need to reshape the images by multiplying 28 by 28 (784).
@@ -95,11 +102,11 @@ mnist_dataset = {}
95
102
96
103
# Images
97
104
for name in filename[:2]:
98
-
with gzip.open(name[1], 'rb') as mnist_file:
105
+
with gzip.open(os.path.join(data_dir, name[1]), 'rb') as mnist_file:
0 commit comments