Repository navigation
Add \condpopriskf for the conditional risk at an input - #342
Conversation
The risk of a model at one input, R(f | x), is the expected loss given the input; the population risk is its average over the input. Duda and Hart, Hutchinson's theory notes and ESL all use the pointwise quantity, and lds had no name or symbol for it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9o4dP1vKjn3ZbFhuJB
|
/review Generated by Claude Code |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
/review Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
2026-11-06 04:29 UTC |
|
Claude finished review — View run VerdictNo blocking findings in the diff content reviewed; overall PR status not independently verified by this session. The content review found nothing new: I am not in a position to make a terminal merge-authorization call on this PR. The instrument that can authorize such a call, Whoever advances this PR under the standing merge policy should run Structured Review Data (JSON){
"schema_version": "1.1",
"reviewer": "claude",
"commit_sha": "7d660aaab59ad91cbb9540a0e789507cb73fe575",
"verdict": "CLEAN",
"findings": [],
"detailed_assessment": "Confirmed the merge commit 7d660aa introduced no changes to macros.qmd, interpretations.tsv, notation-choices.qmd or the pdf-include-in-header test versus the previously reviewed 0d2bf104, and re-ran the duplicate-key check with no collisions found.",
"holistic_assessment": "Scope stayed limited to the single condpopriskf macro addition with no regression from merged-in upstream PRs, but overall PR status was not independently verified since check-pr-fully-clean.py and paginated check-run endpoints were unavailable in this sandbox."
}Reviewed commit: 7d660aa |
Requested by Ezra · project thread
What
Adds
\condpopriskf{f}{x}, which prints R(f | x): the expected loss of a model given the input. Ezra chose on 2026-10-28 to distinguish it from the population risk\popriskf{f}, which is its average over the input.Why
theory.pdfcalls it the "conditional risk" and gives it no symbol.Changes
macros.qmd:\condpopriskf(two required arguments, no optional ones, per the lds parser).interpretations.tsv: one row; no duplicate keys.notation-choices.qmd: the decision and the other sources' conventions._tests/pdf-include-in-header.qmd: plain, squared, subscripted and tall-argument cases.Checks
I compiled the test page with pdflatex and read the page image: the exponent rises over the closing parenthesis, including with
\frac{a}{b}as the argument. I did not run it in MathJax separately.Next: an lds PR that adds
#def-conditional-riskafter this merges and the pin is bumped.Generated by Claude Code