Level sets
The level set at c is the set of all domain inputs whose scalar output equals c.
On this page 9 sections
01A level set collects all inputs that produce the same scalar output#
A level set collects all inputs that produce the same scalar output. On a map, a contour joins places with the same height. For a model’s loss, a contour joins parameter settings with the same error. This lets us discuss several-variable functions without drawing a surface in a higher-dimensional space.
For , many inputs give 4. The circle marks all those inputs in the input plane.
Choose one output . Its level set contains exactly the domain inputs that produce .
For , the level 5 means solve . The point belongs because ; does not because . A level set is a collection of inputs, while 5 is their common output.
, level . Which input belongs?
Show answer and explanation
Only gives .
02For f(x,y)=x^2+y^2, both (2,0) and (0,2) give 4#
For , both and give 4. The origin gives 0, so it is outside level 4. A level set fixes one output; the full graph records every input and its output.
, . Candidates: A, B, C. Which qualify?
Show answer and explanation
A and B give 6.
03To test a candidate, substitute it into the function and compare with the requested level#
To test a candidate, substitute it into the function and compare with the requested level. If a task lists candidates, check every one; that list need not describe the entire level set.
, . Candidates: A, B. Repair “A only”.
Show answer and explanation
Both inputs give 2.
04A closer look#
Contour plots of training loss show where different parameter choices perform equally under that loss. Moving along a contour preserves the plotted value; moving across contours changes it. A contour plot shows only the coordinates or slice specified by its axes.
Fix one output; keep every input that produces it.
- Identify inputs sharing the same scalar output.
Further questions
Is a level set the whole function graph?
Sources & further reading
- [1]