The Modern Mathematics of Deep Learningexplained for non-mathematicians

Distance-based embeddings

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.

Quantum models · Describe wavefunctions, particle coordinates and energy relations.

PDE and quantum models are not operations on these penguin measurements.

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: 8.2 Equations as guides

For each particle, sum the same function of its distances to particles in its spin group.

These expressions specify the inverse or quantum model.

Source formula example

Embk(r,θemb+)≔∑i=1n+Υ(∥rk−ri∥2,θemb+),k∈[n+],\mathrm{Emb}_{k}(r,\theta^{+}_{\mathrm{emb}})\coloneqq\sum_{i=1}^{n_{+}}\Upsilon(\|r_{k}-r_{i}\|_{2},\theta_{\mathrm{emb}}^{+}),\quad k\in[n_{+}],

illustration · The invented finite inputs illustrate this expression. They do not prove a general identity, bound, or existence claim.

Symbols

EmbkEmbₖ
Embedding for particle k.
ΥΥ
Shared function of distance and embedding parameters.
rk,rirₖ,rᵢ
Particle positions in ℝ³.
n+n₊
Positive-spin particle count.
θemb+θemb⁺
Shared embedding parameters.

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.first = 1

Calculated here

Result expression: { embedding }

  • positions = [input.first, 3] Uses: input.first
  • embedding = positions.map((x) => positions.reduce((sum, y) => sum + Math.abs(x - y), 0), ) Uses: positions

Returns

Example result
embedding
array (2 items): [2, 2]

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

Result

Enable JavaScript to run this example.

Technical statement

The invented one-dimensional example uses Υ(distance) = distance. It includes each particle’s zero distance to itself, as in the displayed sum. It is not a trained molecular model.

Source: Source expression