Convolution

Learn how convolutions work and the role they play in CNNs.

Chapter Goals:

  • Learn about convolutions
  • Write a convolution layer for the neural network

A. Filters and kernels

As mentioned at the end of the Image Processing section, filters play a huge role in image recognition. We use filters to transform inputs and extract features that allow our model to recognize certain images. A very high-level example of this would be a curve detecting filter, which allows our model to distinguish between digits with curves (e.g. 88) and digits without curves (e.g. 11).

The weights of a filter are defined through a kernel matrix. The kernel is usually a square matrix and its weights are just floating point numbers.

[0.01.00.40.10.00.01.20.01.1]\begin{bmatrix} 0.0 & 1.0 & 0.4 \\ 0.1 & ...

Access this course and 1400+ top-rated courses and projects.