rasbt / python-machine-learning-book

The "Python Machine Learning (1st edition)" book code repository and info resource
MIT License
12.18k stars 4.39k forks source link

Chapter 15: Padding modes figure #78

Closed tynowell closed 5 years ago

tynowell commented 5 years ago

On page 500 (second edition: September 2017) there is a figure illustrating Full, Same and Valid padding and how the pixel patches map to the feature maps.

The feature map of the valid padding example is only 2x2. It specifies a 5x5 pixel input, 3x3 filter and a stride of 1. The feature map should be of size 3x3.

rasbt commented 5 years ago

Thanks for the comment. We had addressed this in a reprint about a year ago (~around July 2018). It seems you have an older version before this wasn't fixed. For reference, the updated figure can be found here: https://raw.githubusercontent.com/rasbt/python-machine-learning-book-2nd-edition/master/code/ch15/images/15_11.png