Skip to content

v0.3.0: cold calibration seed after numerical audit - #4

Merged
Ju-eun01 merged 2 commits into
mainfrom
v0_3_0-calibration-seed
Oct 28, 2026
Merged

Ju-eun01 merged 2 commits into
mainfrom
v0_3_0-calibration-seed

Conversation

@Ju-eun01

Copy link
Copy Markdown
Contributor

Draft. Pre-release numerical audit of FastHetBlock and the change it led to. Do not tag v0.3.0 before this is merged; the tag should point to the new main commit, not 35ea89c.

Audit (docs/NUMERICAL_AUDIT_v0_3_0.md): no negative inverse-iteration mass in 967 solves; zero truncation, signed normalisation and removing the weight clip leave every displayed result and test outcome unchanged. The PIH β calibration reused the previous trial's backward seed, so T2's displayed IRF error depended on the root bracket (1.05e-3 vs 1.03e-3).

Change: models.pih_household clears _va_cache before every calibration trial and before the final recomputation.

Effect (regenerated outputs, same package versions as recorded):

  • T2 IRF error at eps = 0.0125: 1.05e-3 → 1.04e-3; eps = 0.025: 3.46e-3 → 3.45e-3; fitted order 1.79 unchanged
  • T1 asset-target residual 5.7e-8 → 7.1e-11; T2 market residuals about 10× smaller
  • T1 values change by less than 1e-7 relative; T3–T6 unchanged
  • Full pytest: 114 passed, 4 xfailed

Also: README values and audit paragraph; README_ko.md removed; one sentence in .zenodo.json and CITATION.cff; comment in werning_model corrected. Figures not redrawn.

Before tagging: CITATION.cff still has date-released: "2026-10-24".

🤖 Generated with Claude Code

https://claude.ai/code/session_012Sd9g7Lh16QtD2vCrkf6Rk

The pre-release numerical audit (docs/NUMERICAL_AUDIT_v0_3_0.md) found no
negative inverse-iteration mass and no effect of the absolute value or the
weight clip in FastHetBlock. It found that the PIH beta calibration reused
the previous root-search trial's backward seed, so T2's displayed IRF
error depended on the root bracket (1.05e-3 vs 1.03e-3).

- models.pih_household: clear _va_cache before every calibration trial
  and before the final recomputation.
- models.werning_model: correct the comment on trial savers and the grid.
- Regenerate out/convergence_v0_2.json, out/diagnostics_v0_2.json and
  out/tables_v0_2/suite_results_long_v0_2.csv. T2 IRF error 1.05e-3 ->
  1.04e-3; T1 asset-target residual 5.7e-8 -> 7.1e-11; T3-T6 unchanged.
  convergence_v0_2.json now also carries the v0_3 blocks (a rerun of
  35ea89c produces the same blocks). Figures not redrawn.
- Full pytest: 114 passed, 4 xfailed (out/pytest_output_v0_3_0.txt).
- README: change row, section 1/5/12/15 values and audit paragraph.
- Remove README_ko.md (only the English README is maintained).
- .zenodo.json, CITATION.cff: one sentence on the audit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Sd9g7Lh16QtD2vCrkf6Rk
- CITATION.cff: date-released 2026-10-24 -> 2026-10-28 (planned release
  date of v0.3.0 after this PR is merged).
- README section 17: describe the GPT 6.1 Sol reviews in general terms
  (several stages, including pre-release reviews and audits) instead of
  counting rounds, so the text stays accurate for later reviews by the
  same model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Sd9g7Lh16QtD2vCrkf6Rk
@Ju-eun01
Ju-eun01 marked this pull request as ready for review October 28, 2026 08:56
@Ju-eun01
Ju-eun01 merged commit 62dffa6 into main Oct 28, 2026
5 checks passed
@Ju-eun01
Ju-eun01 deleted the v0_3_0-calibration-seed branch October 28, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants