diff --git a/convolutional-neural-networks/mnist-mlp/mnist_mlp_exercise.ipynb b/convolutional-neural-networks/mnist-mlp/mnist_mlp_exercise.ipynb index 412f3bf47a..7521ea8406 100644 --- a/convolutional-neural-networks/mnist-mlp/mnist_mlp_exercise.ipynb +++ b/convolutional-neural-networks/mnist-mlp/mnist_mlp_exercise.ipynb @@ -372,7 +372,7 @@ "# plot the images in the batch, along with predicted and true labels\n", "fig = plt.figure(figsize=(25, 4))\n", "for idx in np.arange(20):\n", - " ax = fig.add_subplot(2, 20/2, idx+1, xticks=[], yticks=[])\n", + " ax = fig.add_subplot(2, 20//2, idx+1, xticks=[], yticks=[])\n", " ax.imshow(np.squeeze(images[idx]), cmap='gray')\n", " ax.set_title(\"{} ({})\".format(str(preds[idx].item()), str(labels[idx].item())),\n", " color=(\"green\" if preds[idx]==labels[idx] else \"red\"))"