liveBook · Manning

Convolutional neural network

As explained in Machine Learning Algorithms in Depth

A convolutional neural network is a neural-network architecture that uses convolution and pooling operations to process structured spatial or grid-like data.

A convolutional neural network (CNN) processes structured data with trainable filters, convolution, nonlinear activation, and often pooling. For an image of width W, height H, and C channels, a kernel slides across positions, computes dot products, and forms feature maps. Shared filters reduce parameters and support translation-invariant classification. section 10.2

A typical CNN proceeds through these operations:

  • Convolve input data with trainable kernels to extract features. section 10.2
  • Apply nonlinear activation functions between stacked convolutional layers. section 10.2
  • Down-sample feature maps with max pooling, average pooling, or global average pooling. section 10.2
  • Flatten the resulting representation and pass it to dense and softmax layers for classification. section 10.2.1

LeNet for handwritten digits

A LeNet-style model classifies MNIST digits by stacking convolution, ReLU, and max-pooling stages, increasing filter counts while reducing feature-map dimensions. A final dense softmax classifier produces predictions. Keras/TensorFlow code loads and reshapes MNIST data, trains the model, evaluates test accuracy, records loss and accuracy, and uses early stopping; the reported test accuracy reaches 99%. section 10.2.1

Figure 10.4 LeNet architecture for MNIST digits classification
figure

Use the architecture figure to trace the progression from convolution and activation through pooling to classification. section 10.2.1

How Machine Learning Algorithms in Depth covers it

How deep it goes
Derives convolution and pooling operations, then applies them in a LeNet workflow; broader architecture internals are not developed.
Examples
Demonstrates LeNet on MNIST handwritten digits and names ResNet50 image search as an advanced application.
What you can do after
Apply CNNs via Keras/TensorFlow to train, evaluate, and visualize an MNIST classifier.
How it connects
Connects convolution with pooling, activation functions, dense layers, softmax classification, MNIST, and ResNet50.

Also explained in

Compare how 18 books explain convolutional neural network →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning Algorithms in Depth. The section links point to the parts of the book it draws on.