Repository navigation
Lead the EPE and EPL definitions with the fitted model - #641
Conversation
Both definitions opened with "of a fitting procedure F at training-set size n", so the procedure was the subject and the fitted model appeared only at the end. psw's "Make the fitted model the subject, not the fitting procedure" names the procedure only for how a fitted model is built or for an expectation over training sets. Each definition now opens with the fitted model, then says that the model comes from a procedure applied to a random training set, which is why the expected value depends on F and n. The display equations and notation are unchanged. The EPE definition no longer restates that it is the expected prediction loss under squared-error loss; rem-epe-mse already states that equality as a result. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9o6YjMnHWPLc9f5oyb
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
check-one-div-per-subfile fails a PR that adds lines to a subfile with more than one top-level div. _def-epe.qmd also held rem-epe-mse and rem-source-epe, and _def-epl.qmd held rem-epl-generalization-error. Each remark moves unchanged to its own _rem-<stem>.qmd, included right after its definition, so the page renders the same. check-term-links reads "averages" as a defined term from the mds and pds term lists, so "the expected value averages over" becomes "is taken over". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9o6YjMnHWPLc9f5oyb
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Cross-model review (agy, gemini-4-hydrogen-high) of head 1d7e9c4: SummaryPR The mechanical subfile splits and Findings
Verdict / Reviewed-CommitVERDICT: NOT CLEAN Reviewed-Commit: 1d7e9c4 Posted by Claude Code (AI agent) --- not written by a human. |
The cross-model review on this PR noted that def-epe, once it no longer reads as def-epl under squared-error loss, lost def-epl's condition that the training set is drawn independently of the new observation. Add the same clause def-epl carries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9o6YjMnHWPLc9f5oyb
|
Fixed in ae34b55. Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
|
Claude finished review — View run Commit
The prior review of the earlier head, posted 2026-11-19T23:55:46Z on VerdictReady for merge Structured Review Data (JSON){
"schema_version": "1.1",
"reviewer": "claude",
"commit_sha": "ae34b554a117d3847f6b8b7a08081a62c9abf8d6",
"verdict": "CLEAN",
"findings": [],
"detailed_assessment": "Checked the one-line addition to _subfiles/model-validation/_def-epe.qmd: the independence clause is statistically correct, uses existing macros, sits on its own line, and adds no forward references.",
"holistic_assessment": "The change is a scoped one-line clarification inside one definition div, keeps ids and the equation unchanged, and leaves the prior clean review of the earlier head valid."
}Reviewed commit: ae34b55 |
|
Cross-model review (agy, gemini-4-hydrogen-high) of head ae34b55: SummaryThis PR restructures FindingsNone. VerdictVERDICT: CLEAN Reviewed-Commit: ae34b55 Posted by Claude Code (AI agent) --- not written by a human. |
Built to branch |
|
Annotation dispositions for head ae34b55: Check runs 135986448143,135986336261,135986335583:
Posted by Claude Code (AI agent) --- not written by a human. |
Requested by Ezra · project thread
Why
Ezra asked whether
#def-epeshould emphasize models over fitting procedures. Both#def-epeand#def-eplopened with "of a fitting procedure F at training-set size n", which made the procedure the subject; the fitted model only appeared at the end. psw's rule Make the fitted model the subject, not the fitting procedure says to name the procedure only when describing how a fitted model is built, or for an expectation over the training sets the procedure is applied to.What changed
Wording, in
_subfiles/model-validation/:_def-epe.qmd: the definition now opens with the fitted model f̂ = f̂(T). A second sentence says the model comes from a fitting procedure F applied to a random training set of n observations, drawn independently of the new observation (X*, Y*). That is why the expected value, taken over T and Y*, depends on F and n. The clause "is its expected prediction loss under squared-error loss" is dropped, because#rem-epe-msealready states that equality as a result. Dropping it also dropped the independence assumption#def-epeused to inherit from#def-epl, so the definition now states that assumption itself (raised in the cross-model review)._def-epl.qmd: the same restructuring. "a new outcome" becomes a linked "new observation (X*, Y*)".check-term-linksasked for on the changed lines: expected value, new observation, and observations.Mechanical, content-identical split, which
check-one-div-per-subfilerequires for any subfile this PR adds lines to:#rem-epe-msemoves from_def-epe.qmdto_rem-epe-mse.qmd.#rem-source-epemoves from_def-epe.qmdto_rem-source-epe.qmd.#rem-epl-generalization-errormoves from_def-epl.qmdto_rem-epl-generalization-error.qmd.model-validation.qmdincludes each remark right after its definition, on the same slide as before, so the rendered page keeps the same order.The display equations, ids and notation (
\epe{\fitproc}{\nobs}{\predvar}) are unchanged.Checks
quarto render model-validation.qmd --to htmlexits 0. I read the rendered text of both definitions, and the math renders. Before and after the split, the rendered HTML differs only in the two reworded definitions, the page's source listing, the last-modified date and the order of the CSS rules.check-term-links(with the mds and pds term lists, as CI does),check-one-div-per-subfile,check-definite-antecedentsandcheck-avoided-wordson the diff againstorigin/main. All four are clean at the head.🤖 Generated with Claude Code
https://claude.ai/code/session_019xfc9o6YjMnHWPLc9f5oyb