Skip to content

Commit b8c9936

Browse files
authored
Update cifar10_cnn_exercise.ipynb
Fix error ValueError: Number of columns must be a positive integer, not 10.0
1 parent a60c71a commit b8c9936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convolutional-neural-networks/cifar-cnn/cifar10_cnn_exercise.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
"fig = plt.figure(figsize=(25, 4))\n",
149149
"# display 20 images\n",
150150
"for idx in np.arange(20):\n",
151-
" ax = fig.add_subplot(2, 20/2, idx+1, xticks=[], yticks=[])\n",
151+
" ax = fig.add_subplot(2, int(20/2), idx+1, xticks=[], yticks=[])\n",
152152
" imshow(images[idx])\n",
153153
" ax.set_title(classes[labels[idx]])"
154154
]

0 commit comments

Comments
 (0)