Twenty Units the Other Way

VectorsMedium+20 XP+20

Twenty Units the Other Way

During training, a model reports a gradient vector

g⃗=(−3, 4)\vec{g} = (-3,\ 4)g​=(−3, 4)

which points in the direction the error grows fastest. To reduce the error, the optimiser must take a step w⃗\vec{w}w that points in exactly the opposite direction to g⃗\vec{g}g​, with a magnitude of exactly 202020.

What is w⃗\vec{w}w?

Scaling a Vector

Drag v, then slide k. Multiplying a vector by a number stretches, shrinks, or flips it — but never changes the line it sits on.

k
2.0
Drag v-6-4-2246-6-4-2246xykvv

Scalar Multiple

v = (2.0, 1.0)
k = 2.0
kv = (4.0, 2.0)
|k| > 1 — the vector stretches longer.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.