liveBook · Manning

Chapter 7: Function approximation: How neural networks model the world

What you will learn in chapter 7 of Math and Architectures of Deep Learning

This chapter introduces neural networks as a computing paradigm that represents real-world problems as functions and approximates those functions with network building blocks.

After this chapter you will be able to

What it builds on

Section by section

Introduction

This chapter introduces neural networks as a computing paradigm that represents real-world problems as functions and approximates those functions with network building blocks.

Key terms: von Neumann architecture, processor, program, neural network, dedicated hardware, real-world problems, mathematical functions, building blocks, function approximation, neural networks

7.1 Neural networks: A 10,000-foot view

This section presents neural networks as a practical, unified way to approximate unknown real-world target functions through architecture choice and training.

Key terms: target function, modeling function, function approximation, neural network, expressive power, architecture, neurons, connections, parameters, weights

7.2 Expressing real-world problems: Target functions

This section frames real-world problems as numeric target functions that map input variables to output variables and distinguishes continuous from categorical quantities.

Key terms: target function, input variables, output variables, x, y, y = f(x), continuous variables, categorical variables, binary variable, categories

7.2.1 Logical functions in real-world problems

This section shows how real-world binary decisions can be formed by combining outputs from separate detectors with logical functions.

Key terms: logical functions, binary variables, binary decision, separate machines, logical OR, logical AND, logical NOT, logical XOR, NOT of the exclusive OR, multi-input logical OR

7.2.2 Classifier functions in real-world problems

This section presents classifiers as functions that partition a feature space into class regions by estimating decision boundaries from labeled training data.

Key terms: classifier, categorical output, class, input space, feature space, input vector, decision boundary, partition, class region, hypersurface

7.2.3 General functions in real-world problems

This section shows that real-world target functions may need continuous outputs, either to estimate a quantity such as driving speed or to express an event’s probability.

Key terms: continuous output variable, categorical output variable, discriminative, generative, face classification function, probability

7.3 The basic building block or neuron: The perceptron

This introduction motivates neural networks as a general framework for approximating unknown real-world functions from sample input-output pairs using simple neurons.

Key terms: neural networks, target function, closed form, sample input-output pairs, modeling, neuron, building block, neural network, expressive power

7.3.1 The Heaviside step function

This section defines the Heaviside step function as a binary threshold function and relates its equation, algorithm, and graph.

Key terms: Heaviside step function, step function, negative arguments, positive arguments

7.3.2 Hyperplanes

This section explains how a hyperplane is defined by a weighted input expression, why its weight vector is normal to it, and how its sign partitions space for classification.

Key terms: hyperplane, x^T w + b = 0, normal, weight vector, bias, orthogonal, decision boundary, hypersurface, x^T w + b, positive

7.3.3 Perceptrons and classification

This section explains how a perceptron uses a Heaviside step applied to a hyperplane to classify points, why its parameters must be trained from labeled examples, and why one perceptron cannot represent nonplanar class regions.

Key terms: perceptron, Heaviside step function, hyperplane, linear classifier, decision boundary, training data, manually labeled classes, weights, bias, planar separator

7.3.4 Modeling common logic gates with perceptrons

This section shows how single perceptrons implement the binary AND, OR, and NOT logic gates by using weighted sums, biases, and thresholding.

Key terms: perceptron, weighted edges, weights, bias, Heaviside step function, logical AND, logical OR, threshold, ϕ(x0 + x1 - 1.5), hyperplane

7.4 Toward more expressive power: Multilayer perceptrons (MLPs)

7.4.1 MLP for logical XOR

This subsection uses XOR to show why a single perceptron is insufficient and why multiple perceptrons are needed for more expressive models.

Key terms: logical XOR function, input points, output value, perceptron, linear decision boundary, straight line, multiple perceptrons

7.5 Layered networks of perceptrons: MLPs or neural networks

This section introduces neural networks as organized networks of multiple perceptrons needed to solve problems beyond the capability of a single perceptron.

Key terms: perceptron, neural network, network of connected perceptrons, XOR

7.5.1 Layering

This subsection defines the layered connection pattern of multilayer perceptrons, hidden layers, layer-specific parameters, and why multiple hidden layers make a network deep.

Key terms: layering, multilayer perceptron, MLP, layer, input, output, hidden layers, output layer, layer 0, weight

7.5.2 Modeling logical functions with MLPs

This section shows how to construct an MLP for any logical function by implementing the truth-table rows that output 1 and OR-ing them together.

Key terms: truth table, MLP, perceptron, logical AND, logical OR, complements, logical XOR, x̄0x1 + x0x̄1, AND, OR

7.5.3 Cybenko’s universal approximation theorem

This section explains Cybenko’s universal approximation idea by showing how MLPs build one- and two-dimensional towers whose sums approximate continuous functions.

Key terms: Cybenko’s theorem, continuous function, towers, single hidden layer, MLP, perceptrons, expressive power, decision boundary, step function, bias

7.5.4 MLPs for polygonal decision boundaries

This section shows how an MLP combines perceptrons for linear half-planes with an AND operation to classify a rectangular region, extending the idea to polygonal approximations of planar shapes.

Key terms: decision boundary, feature space, half-plane, perceptron, logical AND, MLP, polygons, perceptrons, arbitrary level of accuracy, planar shapes

7.6 Summary

This summary explains how neural networks use layered perceptrons to approximate real-world functions and why successful training depends on representative labeled data.

Where this is used later

Concepts explained in this chapter

← Chapter 6: Bayesian tools for machine learning Chapter 8: Training neural networks: Forward propagation and backpropagation →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.