Repository navigation
Add fitting-procedure, index-set, fold-count and new-observation macros - #144
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RrPGd384p7JxqzpbAhs9ZD
…gree Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RrPGd384p7JxqzpbAhs9ZD
|
/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.
|
Optional wording nit on Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RrPGd384p7JxqzpbAhs9ZD
|
/review This is a one-line wording fix to the Generated by Claude Code |
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RrPGd384p7JxqzpbAhs9ZD
|
/review Ezra asked for a star subscript instead of 0 on new and held-out observations ( Posted by Claude Code (AI agent), not written by a human. 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.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RrPGd384p7JxqzpbAhs9ZD
|
/review I merged Posted by Claude Code (AI agent), not written by a human. Generated by Claude Code |
2026-10-15 02:13 UTC |
|
Claude finished review — View run All 5 checks now pass. The diff content is unchanged from the previously reviewed head ( Review of #144 (round 3)What changed since the last round: Verification performed
FindingsNone. This round introduces no new PR content — only a routine merge of main into the branch — and all prior findings are either resolved (the The prior verdict from round 2 (comment, posted 2026-10-15T02:00:54Z) — "Diff is clean from this review; CI is green" — still stands: the diff is unchanged and CI is now fully green (5/5, including the previously-pending VerdictReady for merge — no new findings; diff unchanged from the already-clean round 2 state, and CI is green 5/5. Structured Review Data (JSON){
"schema_version": "1.1",
"reviewer": "claude",
"commit_sha": "14e4b0699eab9eaabe4e5e993bd88a94cceb6aa4",
"verdict": "CLEAN",
"findings": [],
"detailed_assessment": "Diffed merge-base(HEAD,origin/main)..HEAD across interpretations.tsv and macros.qmd; the merge commit only advances the base to include main's unrelated commit 96c03d8, introducing zero net lines beyond the already-reviewed 22+22 macro additions.",
"holistic_assessment": "Confirmed no naming collisions between this PR's 20 new macros and the 6 macros merged in from main's commit 96c03d8, no duplicate interpretations.tsv keys, and all 5 CI checks (Analyze actions/python, CodeQL, build, check) pass on the current head."
}Reviewed commit: 14e4b06 |
Requested by Ezra · project thread
Before: the sds model-validation chapter wrote its fitting procedure
g, candidate listg_1, …, g_L, fold countk, index setsI, indicesi,j,l, held-out sizem, and new observation(X_0, Y_0)as plain letters, because no role macro existed (Ezra's no-plain-letters rule).After: role-named macros for each, with
interpretations.tsvrows:\fitproc(g),\candproc{l}(g_l),\candproctuned{CV}(g with a label superscript),\candfnset{l}(the set of candidate prediction functions of procedure l),\ncand(L),\icand(l).\nfolds(k),\ifold(j),\iobs(i),\obsidx(I),\nheld(m).\termfn{j}(t_j, a term of a linear-in-terms model),\polydeg(d),\sscp(A, the cross-product matrix of the term vectors).\newpredvar,\newoutvar(random X_, Y_),\newpredval,\newoutval(fixed x_, y_), and\heldpredvar{j},\heldoutvar{j},\heldpredval{j},\heldoutval{j}for the j-th held-out observation. They build on the existing\predvar,\outvar,\Predvar,\Outvar. The star is a subscript so it stays distinct from the superscript-star macros\bestmod(h^),\nparams(p^),\modresidual(r^) and\vxs(x^).Reused, not added:
\nobs,\modmem,\trainset,\valset,\trainidx,\validx,\testidx,\tuning,\inputdim,\nparams.How: grepped macros.qmd and interpretations.tsv for each new name first (none existed; no duplicate keys).
quarto render macros-table.qmdsucceeds, so every macro has an interpretation.tools/check_latex.pycould not run here (no pdflatex), but none of the new\providecommandnames is a LaTeX built-in. The sweep that uses these is sds#169, in the sds model-validation plain letters thread.🤖 Generated with Claude Code
https://claude.ai/code/session_01RrPGd384p7JxqzpbAhs9ZD