Skip to content

Alias \fitted to \ey instead of the deprecated \hy - #482

Merged
d-morrison merged 3 commits into
mainfrom
claude/fitted-alias-ey
Dec 4, 2026
Merged

d-morrison merged 3 commits into
mainfrom
claude/fitted-alias-ey

Conversation

@d-morrison

@d-morrison d-morrison commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Ezra · project thread

Closes #479.

Why

\fitted was defined as \hy, which interpretations.tsv marks deprecated ("use \ey").
psw's rule "Write a predicted value with the predicted-value macro" (chapters/defining-terms.qmd) tells authors to write the fitted model as \fitted and its prediction as \predvalf{x}, which prints \fitted\paren{x}.
So the automated reviewers read \fitted as a deprecated alias and block pages that follow psw (three rounds on lds#3710, a private repo).

What changed

  • macros.qmd: \def\fitted{\ey} instead of \def\fitted{\hy}. Both print y-hat (\ey is \est{y}, which is \hat{y}), so no rendered output changes.

  • interpretations.tsv: the \fitted row now says it is an alias for \ey, names the fitted model as well as a predicted value, and notes that \predvalf{x} prints \fitted\paren{x}.

  • data/symbols-all.csv: regenerated with tools/gen_symbols.py, which moves \fitted from the \hy row to the \ey row.

notation-choices.qmd needs no change (label no-notation-change): nothing prints differently, and the page already presents y-hat as the fitted value; only which macro \fitted forwards to changes.

\hy itself stays deprecated; \efitted already aliases \ey.

https://claude.ai/code/session_019xfc9pik7Dix5QrrcG3C9g


Generated by Claude Code

psw tells authors to write the fitted model as \fitted (with \predvalf for its prediction),
but \fitted pointed at the deprecated \hy, so reviewers flagged pages that follow psw (#479).
Both print y-hat, so no rendered output changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019xfc9pik7Dix5QrrcG3C9g
@d-morrison d-morrison self-assigned this Dec 4, 2026

Copy link
Copy Markdown
Collaborator Author

/review


Posted by Claude Code (AI agent) --- not written by a human.


Generated by Claude Code

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Claude finished review — View run


Earlier findings

The prior round on c49b189 was clean (comment of 2026-12-04T19:46:56Z). It left no findings, so there is nothing to settle.

What I checked at c4f8c91

  • Range since the last review. The only change is a merge of main (87a942e, Start the Claude review automatically when a PR opens #481), which git's automatic merge produces. That commit touches no file in this PR's diff.
  • macros.qmd:126. \def\fitted{\ey} replaces \def\fitted{\hy}. Per the prior round, \ey is \est{y}, which prints ŷ, so rendered output is unchanged. \fitted no longer routes through the deprecated \hy.
  • interpretations.tsv:124. The \fitted row now says it is an alias for \ey. The diff leaves no other \fitted row, and the prior round's uniq -d check found no duplicate keys.
  • data/symbols-all.csv. The \ey row now lists \fitted, and the \hy row no longer does. That agrees with the definitions in macros.qmd. The prior round ran python3 tools/gen_symbols.py --check and it passed. This diff does not change those files.
  • notation-choices.qmd. The PR carries the no-notation-change label. The page already presents ŷ as the fitted value and does not name \fitted.
  • Math-macro rules. The diff adds no math to notes content, so the notes-site rules do not apply.
  • Merge state. I read the PR just now: mergeable is MERGEABLE (no conflicts), and mergeStateStatus is UNSTABLE. That status means some check on the head is failing or still pending. I did not identify which check, so CI is not confirmed green on this head. My verdict covers the diff only, not the merge gate.
  • Not run. I did not rerun the generator check or a MathJax/pdflatex measurement on this head. The diff changes none of the inputs to either check, and neither \ey nor \est contains a delimiter macro.

No findings in the diff.

Verdict

Ready for merge on the diff's content. The PR has no merge conflicts, but UNSTABLE means CI must be checked on this head before merging.

Structured Review Data (JSON)
{
  "schema_version": "1.1",
  "reviewer": "claude",
  "commit_sha": "c4f8c91a2d7ff8ad290eae260791d2484c56dc89",
  "verdict": "CLEAN",
  "findings": [],
  "detailed_assessment": "Traced the changed definition of fitted in macros.qmd to ey, which prints the same hatted y as before. The interpretations.tsv row and the symbols-all.csv rows agree with the new alias, and the merge of main adds no change to these files.",
  "holistic_assessment": "The change meets the goal of making fitted a non-deprecated alias of ey with no rendering change. The CSV was regenerated and the no-notation-change label is justified. The PR is mergeable but its merge state is UNSTABLE, so CI status on this head needs confirming separately."
}

Reviewed commit: c4f8c91

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

💰 Cost: $0.2239 (review) — run

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2
🚀 Preview available at: https://Morrison-Lab.github.io/macros/pr-preview/pr-482/

Built to branch gh-pages at 2026-12-04 19:50 UTC.

Copy link
Copy Markdown
Collaborator Author

Annotation dispositions for head c4f8c91:

  • check runs 145317701213, 145317672232, 145317671734: each has one warning, the GitHub runner notice that actions/checkout@v4 targets Node.js 20 and is forced onto Node.js 24. It comes from the workflow's pinned action, not from this diff, and needs no change here.

Posted by Claude Code (AI agent) --- not written by a human.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Cross-harness review waived for head c4f8c91: agy, codex, cursor-agent and gemini are absent from this cloud session (command -v exits 1 for each), and the OpenCode Go attempt was refused by the auto-mode classifier. The Claude review on this head is clean and CI is green.


Posted by Claude Code (AI agent) --- not written by a human.


Generated by Claude Code

@d-morrison
d-morrison merged commit 5108879 into main Dec 4, 2026
18 checks passed
@d-morrison
d-morrison deleted the claude/fitted-alias-ey branch December 4, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is \fitted current or deprecated? It aliases the deprecated \hy

2 participants