Repository navigation
Point the agent guide and docs pages at microcosm-fit and microcosm-calibrate - #605
Merged
Merged
Conversation
…alibrate CLAUDE.md, the README's related projects, the interactive methodology page and the employer-firm plan named microimpute, microcalibrate, L0 and the Enhanced CPS as this project's tools. Microcosm's microcosm-fit and microcosm-calibrate succeed them, as docs/infrastructure.md already says, so these files now name those packages and call their APIs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
CLAUDE.md now names microimpute, microcalibrate and L0 as packages and lists Microcosm's shards as examples. docs/infrastructure.md, which the guide points to, now says microcosm-calibrate runs Adam on log-weights by default. The methodology page gives the RegimeGatedQRF sentence a verb, says microcosm-fit runs in Microcosm's U.S. and UK builds, types the calibrate sample's input and opens its key insight with the tools PolicyEngine already has. The plan page recasts the recipe, the tax-records sentence and the target/gate rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The panel's title and import line already name microcosm-fit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
CLAUDE.md, the README and two docs pages named microimpute, microcalibrate, L0 and the Enhanced CPS as this project's tools. PolicyEngine archived microimpute on 2026-11-08 (PolicyEngine/microimpute#224), and Microcosm'smicrocosm-fitandmicrocosm-calibratesucceed those packages, asdocs/infrastructure.mdanddocs/methodology.mdalready say. This PR brings the four files in line and corrects howdocs/infrastructure.mddescribes microcosm-calibrate's solver.CLAUDE.md, core technical concepts. The model now extends Microcosm instead of the Enhanced CPS. Step 1 namesmicrocosm-fit(RegimeGatedQRF) and notes that the engine imports it aspopulace.fit; step 3 namesmicrocosm-calibrate. A new line tells agents to build new imputation on microcosm-fit and new calibration on microcosm-calibrate, says themicroimpute,microcalibrateandL0packages belong to PolicyEngine's previous data stack, and points todocs/infrastructure.md. The "Key insight" line about the Enhanced CPS matching JCT and TPC goes.CLAUDE.md, related repositories. Onemicrocosmrow replaces the microimpute, microcalibrate, policyengine-us-data and L0 rows.README.md, related projects. A Microcosm link replaces the PolicyEngine-US-Data, Populace, microimpute and microcalibrate links.docs/_static/methodology-interactive.html. The pipeline nodes and detail panels namemicrocosm-fitandmicrocosm-calibrate, and their code samples now call those packages' APIs:RegimeGatedQRF(seed=0).fit(...)then.predict(...), andcalibrate(base_population, ssa_targets)then.frame. The CPS panel describes Microcosm's U.S. build. The page drops its Enhanced CPS claims and the "7,000+ ECPS calibration targets" card, and its key insight opens with the tools PolicyEngine already has.docs/plans/employer-firm-plan.html. The diagram node, the data table, the workstream text and the target/gate protocol rule namemicrocosm-fitandmicrocosm-calibrate. Two Enhanced CPS references now describe the recipe and PolicyEngine's microdata, and the CPS row drops a third, "(the ECPS host)".docs/infrastructure.md. The microcosm-calibrate entry, which the newCLAUDE.mdline points to, said "accelerated projected gradient". It now says Adam on log-weights by default, with opt-in L0 sparse selection.Evidence from code
populace.fitsrc/populace_dynamics/engine/forward_earnings.py:981andsrc/populace_dynamics/engine/refit.py:780(from populace.fit.qrf import RegimeGatedQRF);PolicyEngine/populaceredirects toPolicyEngine/microcosmRegimeGatedQRF(...).fit(df, predictors, targets, weights=...), then.predict(df)packages/microcosm-fit/src/microcosm/fit/qrf.py:1755(fit; a DataFrame needs explicit weights,:1769-1772),:2349(predict)calibrate(frame, targets)returns aCalibrationResultcarrying.framepackages/microcosm-calibrate/src/microcosm/calibrate/solve.py:2118-2151(signature),:283-336(CalibrationResult, withframe: Frameat:336)solve.py:2124(method: str = "adam"),:2164-2175("apg"survives only as a deprecated alias for"adam")l0_lambdaortarget_records, and both default offsolve.py:2131-2132(target_recordsdefaults toNoneandl0_lambdato0.0),:2595(thetarget_recordsbranch searchesl0_lambda)packages/microcosm-build/src/microcosm/build/us_runtime/puf_qrf_chain.py:44,219,363(QRFfrommicrocosm.fit);uk_runtime/was_wealth.py,lcfs_consumption.py,etb_vat.pyandetb_services.pycallRegimeGatedQRF, andspi_income.pyandsalary_sacrifice.pyloadmicrocosm.fit.QRFus_runtime/exact_k_ladder.py:19-29,190,217(calibrateon the release ladder)LICENSEshowDetail('…')key matches adata-detailattribute and a detail panel, andnode --checkpasses on the page's scriptNot in this PR
populaceprose lines (30 to 181). Package rename populace_dynamics → microcosm_dynamics requires a design-binding repin ceremony #373 exempts README prose from the package repin, so a prose pass can rename them.docs/adr/0003-employer-firm-extension.md:200, which namesmicrocalibratein the rule this PR rewrites on the plan page. ADR 0003 changes only by joint PR between workstreams A and B.docs/infrastructure.md:311-336, which shows apolicyengine-us-data/tree as this project's code layout.paper/paper.qmd:454, which cites@ghenis2024beside@policyengine2026for PolicyEngine's open cross-sectional microdata. The paper cites@microcosm2026for Microcosm's frame at line 365.reviews/feedback records, which keep their wording.ghenis2024citation key atCLAUDE.md:46, which cites the 2024 Enhanced CPS launch post.🤖 Generated with Claude Code