liveBook · Manning

Chapter 1: An overview of machine learning and deep learning

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

This introduction frames deep learning as a transformative practical technology and explains why the book emphasizes mathematical principles over memorizing recipes.

After this chapter you will be able to

Section by section

Introduction

This introduction frames deep learning as a transformative practical technology and explains why the book emphasizes mathematical principles over memorizing recipes.

Key terms: underlying principles, abstractions, mathematics, how-to steps, overview of deep learning, cat brain, deep neural networks, open questions

1.1 A first look at machine/deep learning: A paradigm shift in computation

This section introduces machine learning as building and training parameterized models that map inputs to decisions or estimates, rather than programming rules directly.

Key terms: machine learning, parameterized function, model, model architecture, parameters, classification problem, classes, regressors, quantitative estimation, threat score

1.2 A function approximation view of machine learning:Models and their training

This section frames machine learning as approximating an unknown input-to-output function with a parameterized model trained on labeled examples.

Key terms: function approximation, model, proxy, surrogate, training data, model architecture, tunable parameters, weights, training, weighted sum

1.3 A simple machine learning model: The cat brain

This section introduces a deliberately simple cat-decision example that the following subsections use to illustrate machine learning concepts.

Key terms: hypothetical cat, quantitative inputs, run away, ignore, approach and purr, lightweight overview, mathematical concepts, vectors, matrices, re-read

1.3.1 Input features

This subsection defines the cat-brain input features, shows how to normalize each feature to the range from 0 to 1, and represents one input as a two-element vector.

Key terms: input features, x0, hardness, x1, sharpness, two-element vector, normalization, vmin, vmax, v

1.3.2 Output decisions

This subsection defines the cat model’s three behavioral outputs by converting a scalar threat score into run, ignore, or approach decisions using thresholds.

Key terms: threat score, threshold δ, multiclass, run away, ignore, approach and purr, class, output decision

1.3.3 Model estimation

This section frames model estimation as approximating an unknown input-to-output function from training data through architecture selection and training.

Key terms: model estimation, input vector, output, y(), training data, ideal function, model architecture selection, parameterized function, proxy, surrogate

1.3.4 Model architecture selection

This section selects a simplest linear cat-brain model whose threat score is computed from two input-weight products plus a bias.

Key terms: model architecture, parameters, w0, w1, b, threat score, bias, weights, constant, inputs

1.3.5 Model training

This section defines supervised model training as estimating parameters that minimize prediction error on labeled training data, typically through iterative updates.

Key terms: model training, parameters, weights, training data, ground truth, predicted output, squared error, loss, total error, E

1.3.6 Inferencing

This subsection explains how a trained model is deployed to produce predictions for new inputs and turn them into classifications by thresholding.

Key terms: inferencing, trained machine, optimal parameters, new inputs, predicted output, ypredicted, thresholding, classification, equation 1.2

1.4 Geometrical view of machine learning

This section presents machine learning geometrically as mapping feature-space points into an output space where estimation or classification is simpler.

Key terms: feature space, input space, output space, input vector, output vector, classification, classes, clusters, thresholding, signed distance

1.5 Regression vs. classification in machine learning

This section distinguishes regressors from classifiers and shows how thresholding a regressor can produce a class decision.

Key terms: regressor, classifier, prespecified classes, class, thresholding, threat-score estimator, intervening regressor, output decision

1.6 Linear vs. nonlinear models

This section explains why nonlinear models are needed for complex class boundaries and introduces the sigmoid of a weighted input sum as a basic neural-network building block.

Key terms: linear model, nonlinear model, weighted combination, hyperplane, function approximation, sigmoid function, σ, weighted sum, nonlinearity, model architecture

1.7 Higher expressive power through multiple nonlinear layers: Deep neural networks

This section introduces deep neural networks as cascades of nonlinear logistic-regression units whose layered architecture provides systematically adjustable expressive power for complex tasks such as image recognition.

Key terms: expressive power, nonlinear model, deep neural network, hidden outputs, hidden layer, logistic regression unit, grand output, final layer, weights, layer 0

1.8 Summary

This summary consolidates machine learning as trained function approximation and deep learning as multilayer nonlinear modeling with greater expressive power.

Where this is used later

Concepts explained in this chapter

Chapter 2: Vectors, matrices, and tensors in machine learning →

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.