Lab · c19.s03.L1

Bend the space

A hidden layer changes the coordinates; the output's straight line in the new coordinates is the bent boundary in the old ones.

Question: How does a second layer bend the boundary?

Bend the spaceTwo panels. On the left, four points at the corners of a square, two gold and two navy, with two parallel diagonal lines cutting the square; the band between them is shaded russet. On the right, the same four points become three points at the corners of a unit square, and one straight russet line separates the gold point from the two navy points. A movable probe shows where any input lands in both panels.Bend the spaceHow does a second layer bend the boundary?Input plane: x1, x2Hidden plane: h1, h200110011x1h1x2h2answer 1answer 0h1 = 1h2 = 1(0, 0)(0, 1)(1, 0)(1, 1)answer 1h2 = h1 + 0.5(0, 0)(0, 1) ×2(1, 1)probe (0.30, 0.30): sum 0.60, (h1, h2) = (0, 1), score 0.50, answer 1
Re-simulated Re-simulated: the four rows, the two hidden lines and the boundary are recomputed exactly by data/scripts/c19.s03.L1.py from the nine weights and thresholds the section chooses by hand. Nothing is measured and nothing is random.
Lab controls
4 · One line, two edges

Up and Down change the step by one; Home and End jump to the first and last step; typing the step number selects it

0.3

Left/Down and Right/Up move 0.05; Page Down and Page Up move 0.20; Home sets 0.00, End sets 1.00

0.3

Left/Down and Right/Up move 0.05; Page Down and Page Up move 0.20; Home sets 0.00, End sets 1.00

Frame 1 of 1: One line, two edgesThe output unit reads -h1 + h2 - 0.5, so it answers 1 exactly on the upper-left side of the straight line h2 = h1 + 0.5 in the hidden square; there the hidden pair is (0, 1). Carried back to the input plane, that one line is the boundary: two edges, x1 + x2 = 0.5 and x1 + x2 = 1.5, with the answer-1 band between them. Both hidden units read the same sum, so the two edges are parallel and the boundary has no corner. The probe at (0.30, 0.30) has sum 0.60, hidden pair (0, 1), output score 0.50 and answer 1.

One line, two edges. The output unit reads -h1 + h2 - 0.5, so it answers 1 exactly on the upper-left side of the straight line h2 = h1 + 0.5 in the hidden square; there the hidden pair is (0, 1). Carried back to the input plane, that one line is the boundary: two edges, x1 + x2 = 0.5 and x1 + x2 = 1.5, with the answer-1 band between them. Both hidden units read the same sum, so the two edges are parallel and the boundary has no corner. The probe at (0.30, 0.30) has sum 0.60, hidden pair (0, 1), output score 0.50 and answer 1.

Keyboard: Space plays or pauses, Left and Right step, Home goes to the first frame, End goes to the last frame.

Text description of this lab

Two panels. On the left, four points at the corners of a square, two gold and two navy, with two parallel diagonal lines cutting the square; the band between them is shaded russet. On the right, the same four points become three points at the corners of a unit square, and one straight russet line separates the gold point from the two navy points. A movable probe shows where any input lands in both panels.

Return to the section that hosts this lab

Caption status: re-simulated. Every lab declares one of published, re-simulated, schematic, synthetic or interpolated.