The Modern Mathematics of Deep Learningexplained for non-mathematicians

Training samples

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 · 2.2 Weight size and room to decide · 2.3 The path matters · More source sections

A sample is an ordered collection of m examples. Each example pairs an input with a target.

Training uses the observed examples.

Source formula example

s=((x(i),y(i)))i=1m{s}=((x^{(i)},y^{(i)}))_{i=1}^{m}

illustration · This invented finite example illustrates the notation; it does not establish a general theorem.

Symbols

ss
The sample.
mm
Number of examples.
x(i),y(i)x⁽ⁱ⁾, y⁽ⁱ⁾
Input and target of example i.

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

You choose

  • input.x = 2

Calculated here

Result expression: { sample, m: sample.length, firstInput: sample[0][0], firstTarget: sample[0][1], }

  • sample = [ [input.x, 4], [3, 6], ] Uses: input.x

Returns

Example result
sample
array (2 items): [array (2 items): [2, 4], array (2 items): [3, 6]]
m
2
firstInput
2
firstTarget
4

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

Result

Enable JavaScript to run this example.

Technical statement

The numerical values in this example are invented. This invented finite example illustrates the notation; it does not establish a general theorem.

Source: Inline notation