The Modern Mathematics of Deep Learningexplained for non-mathematicians

A learning rule

Penguin learning project

The project uses 342 complete Palmer penguin records: 240 training-pool and 102 held-out rows. The selected training rows determine feature scaling and model parameters. Source CSV

This project trains weights with softmax, unlike the homepage lab, which uses nearest species averages. Same penguin measurements; different classification methods. Predictions can differ.

Model classes and structure · Describe families of rules, their size and structural properties.

The project supplies finite observations and fitted parameters. A held-out sample does not establish population bounds or prove a theorem.

Consider this concept alongside the project; its source assumptions may differ. These observations do not prove a theorem.

Input: 12 × 2; Held-out evaluation: 102 · #58 · 40.6 mm, 193 mm. Known answer: Adélie; Prediction: Adélie · [≈0.7383, ≈0.2444, ≈0.01737].

Used in these source sections: 1.2 Learning from examples · 1.2.1 Finding better settings · 1.2.3 Does it work on new examples? · More source sections

A learning algorithm 𝒜 takes a sample s and returns a function fₛ in the allowed class. A loss evaluates that function on an example z.

These roles distinguish training from evaluating a prediction.

Source formula example

fs=A(s)∈Ff_{s}=\mathcal{A}({s})\in{\mathcal{F}}

illustration · The example supplies one selected rule; it does not demonstrate how a general learning algorithm selects it.

Symbols

𝒜𝒜
A mapping from training samples to allowed functions.
ss
The training sample.
fsf_{s}
The function selected using s.
F\mathcal{F}
The hypothesis set.
Lℒ
A loss function.
zz
A data example.

Source formula example

This source example uses its own inputs and assumptions. Editing it does not change the project.

Edit a value or the code, then run the example. This is a finite demonstration, not a proof of the paper’s theorem.

This example’s data flow

Initial values in code

  • sample = [ [0, 1], [1, 2], ]
  • z = [2, 4]

Calculated here

Result expression: { sample, z, prediction, loss: (prediction - z[1]) ** 2 }

  • prediction = f(z[0]) Uses: f, z

Returns

Example result
sample
array (2 items): [array (2 items): [0, 1], array (2 items): [1, 2]]
z
array (2 items): [2, 4]
prediction
3
loss
1

Read numbers from input and return the result. JavaScript basics.

Result

Enable JavaScript to run this example.

Technical statement

The numerical values are invented. The example supplies one selected rule; it does not demonstrate how a general learning algorithm selects it.

Source: Inline notation