From 3df4816dfa1503ad30c7df81c78f8611fa893dec Mon Sep 17 00:00:00 2001 From: schutera <42141561+schutera@users.noreply.github.com> Date: Thu, 20 Apr 2023 10:34:15 +0200 Subject: [PATCH] Update Chapter10 - Intro to Convolutional Neural Networks - Learning Edges and Corners.ipynb fix number of convolutional operations --- ...utional Neural Networks - Learning Edges and Corners.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chapter10 - Intro to Convolutional Neural Networks - Learning Edges and Corners.ipynb b/Chapter10 - Intro to Convolutional Neural Networks - Learning Edges and Corners.ipynb index ab04fc5..347f615 100644 --- a/Chapter10 - Intro to Convolutional Neural Networks - Learning Edges and Corners.ipynb +++ b/Chapter10 - Intro to Convolutional Neural Networks - Learning Edges and Corners.ipynb @@ -363,8 +363,8 @@ "kernel_cols = 3\n", "num_kernels = 16\n", "\n", - "hidden_size = ((input_rows - kernel_rows) * \n", - " (input_cols - kernel_cols)) * num_kernels\n", + "hidden_size = ((input_rows - kernel_rows +1) * \n", + " (input_cols - kernel_cols +1)) * num_kernels\n", "\n", "# weights_0_1 = 0.02*np.random.random((pixels_per_image,hidden_size))-0.01\n", "kernels = 0.02*np.random.random((kernel_rows*kernel_cols,\n",