The Modern Mathematics of Deep Learningexplained for non-mathematicians

Inputs, targets and data

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.

Classification predicts three species; Ridge predicts body mass in grams using the same observations. These are separate models. Training predictions feed the objective; 102 separate test predictions never update the weights.

Observations and sampling · Describe examples, targets and samples.

The selected rows supply measurements and known answers to training; held-out IDs remain separate.

Observations

Input
Training: 12 / 240
Output
#19: Bill length 34.4 mm, Flipper length 184 mm

Project operation

The project calculation uses these records; the source formula and example follow below. Code edits run locally; project settings travel between pages.

Observations → Observations → Features

Project input

Showing first three entries; the operation receives the complete array. Rounded preview; the operation uses full precision.

input.rows · Observations
[Id: 19 · Bill length (mm): 34.4 · Flipper length (mm): 184 · Mass (g): 3325 · Species: Adélie, Id: 307 · Bill length (mm): 40.9 · Flipper length (mm): 187 · Mass (g): 3200 · Species: Chinstrap, Id: 259 · Bill length (mm): 41.7 · Flipper length (mm): 210 · Mass (g): 4700 · Species: Gentoo] … (12 entries)

Result

[Row ID: 19 · Bill length (mm): 34.4 · Flipper length (mm): 184 · Mass (g): 3325 · Species: Adélie, Row ID: 307 · Bill length (mm): 40.9 · Flipper length (mm): 187 · Mass (g): 3200 · Species: Chinstrap, Row ID: 259 · Bill length (mm): 41.7 · Flipper length (mm): 210 · Mass (g): 4700 · Species: Gentoo] … (12 entries)

Used in these source sections: 1.2 Learning from examples · 1.2.3 Does it work on new examples?

In supervised learning, an example z pairs an input x with a target y. 𝒳 and 𝒴 are their allowed sets; 𝒵 is their Cartesian product.

A data space defines the possible examples.

Source formula example

X,Y{\mathcal{X}},{\mathcal{Y}}

illustration · This example uses finite sets; the general setting also permits other measurable spaces.

Symbols

𝒳𝒳
Input space.
𝒴𝒴
Target space.
𝒵𝒵
Example space; in the supervised case 𝒳 × 𝒴.
x(i),y(i)x⁽ⁱ⁾, y⁽ⁱ⁾
Input and target in example i.
zz
An example in 𝒵.

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

  • X = [0, 1]
  • Y = [-1, 1]

Calculated here

Result expression: { X, Y, Z }

  • Z = X.flatMap((x) => Y.map((y) => [x, y])) Uses: X, Y

Returns

Example result
X
array (2 items): [0, 1]
Y
array (2 items): [-1, 1]
Z
array (4 items): [array (2 items): [0, -1], array (2 items): [0, 1], array (2 items): [1, -1], array (2 items): [1, 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. This example uses finite sets; the general setting also permits other measurable spaces.

Source: Inline notation