Skip to content

Commit e181981

Browse files
committed
Update publication candidate
1 parent 8fd8eed commit e181981

6 files changed

Lines changed: 28 additions & 21 deletions

File tree

changelog.d/1125.changed.md renamed to .github/publication_candidates/usdata-gha26512098270-a1/changelog.d/1125.changed.md

File renamed without changes.

changelog.d/1131.fixed renamed to .github/publication_candidates/usdata-gha26512098270-a1/changelog.d/1131.fixed

File renamed without changes.

changelog.d/1141.changed.md renamed to .github/publication_candidates/usdata-gha26512098270-a1/changelog.d/1141.changed.md

File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"base_release_version": "1.115.5",
3+
"candidate_scope": "1.115.5-patch",
4+
"release_bump": "patch",
5+
"run_id": "usdata-gha26512098270-a1",
6+
"would_release_as_at_build_time": "1.115.6"
7+
}

.github/publication_scope.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"base_release_version": "1.115.5",
33
"candidate_scope": "1.115.5-patch",
44
"release_bump": "patch",
5-
"run_id": "usdata-gha26421187461-a1",
5+
"run_id": "usdata-gha26512098270-a1",
66
"would_release_as_at_build_time": "1.115.6"
77
}

docs/generated/pipeline_api.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"docstring": "Set 2025 ACA take-up to match APTC enrollment targets.",
44
"id": "aca_2025_override",
55
"kind": "function",
6-
"line": 404,
6+
"line": 420,
77
"metadata": {
88
"api_refs": [
99
"policyengine_us_data.datasets.cps.enhanced_cps.create_aca_2025_takeup_override"
@@ -34,7 +34,7 @@
3434
"docstring": "Impute rent and real_estate_taxes from ACS with state.\n\nArgs:\n data: CPS data dict.\n state_fips: State FIPS per household.\n time_period: Tax year.\n dataset_path: Path to CPS h5 for Microsimulation.\n\nReturns:\n Updated data dict.",
3535
"id": "acs_qrf",
3636
"kind": "function",
37-
"line": 524,
37+
"line": 525,
3838
"metadata": {
3939
"api_refs": [
4040
"policyengine_us_data.calibration.source_impute._impute_acs"
@@ -61,7 +61,7 @@
6161
"docstring": "\"Add auto loan balance, interest and net_worth variable.",
6262
"id": "add_auto_loan",
6363
"kind": "function",
64-
"line": 3080,
64+
"line": 3063,
6565
"metadata": {
6666
"api_refs": [
6767
"policyengine_us_data.datasets.cps.cps.add_auto_loan_interest_and_net_worth"
@@ -88,7 +88,7 @@
8888
"docstring": "Populate household-level geography variables used by PolicyEngine US.\n\nArgs:\n cps: Output CPS H5 group receiving derived household variables.\n household: Raw CPS household table.",
8989
"id": "add_household_variables",
9090
"kind": "function",
91-
"line": 1673,
91+
"line": 1656,
9292
"metadata": {
9393
"api_refs": [
9494
"policyengine_us_data.datasets.cps.cps.add_household_variables"
@@ -142,7 +142,7 @@
142142
"docstring": "Impute ORG-derived labor-market inputs and derive overtime premium.",
143143
"id": "add_org_inputs",
144144
"kind": "function",
145-
"line": 2980,
145+
"line": 2963,
146146
"metadata": {
147147
"api_refs": [
148148
"policyengine_us_data.datasets.cps.cps.add_org_labor_market_inputs"
@@ -223,7 +223,7 @@
223223
"docstring": "",
224224
"id": "add_previous_year_income",
225225
"kind": "function",
226-
"line": 1715,
226+
"line": 1698,
227227
"metadata": {
228228
"api_refs": [
229229
"policyengine_us_data.datasets.cps.cps.add_previous_year_income"
@@ -277,7 +277,7 @@
277277
"docstring": "",
278278
"id": "add_spm_variables",
279279
"kind": "function",
280-
"line": 1634,
280+
"line": 1617,
281281
"metadata": {
282282
"api_refs": [
283283
"policyengine_us_data.datasets.cps.cps.add_spm_variables"
@@ -304,7 +304,7 @@
304304
"docstring": "Assign SSN card type using PRCITSHP, employment status, and ASEC-UA conditions.\nCodes:\n- 0: \"NONE\" - Likely undocumented immigrants\n- 1: \"CITIZEN\" - US citizens (born or naturalized)\n- 2: \"NON_CITIZEN_VALID_EAD\" - Non-citizens with work/study authorization\n- 3: \"OTHER_NON_CITIZEN\" - Non-citizens with indicators of legal status",
305305
"id": "add_ssn_card_type",
306306
"kind": "function",
307-
"line": 1821,
307+
"line": 1804,
308308
"metadata": {
309309
"api_refs": [
310310
"policyengine_us_data.datasets.cps.cps.add_ssn_card_type"
@@ -358,7 +358,7 @@
358358
"docstring": "",
359359
"id": "add_tips",
360360
"kind": "function",
361-
"line": 2720,
361+
"line": 2703,
362362
"metadata": {
363363
"api_refs": [
364364
"policyengine_us_data.datasets.cps.cps.add_tips"
@@ -815,7 +815,7 @@
815815
"docstring": "Replace clone-half person-level feature variables with donor matches.",
816816
"id": "clone_features",
817817
"kind": "function",
818-
"line": 607,
818+
"line": 603,
819819
"metadata": {
820820
"api_refs": [
821821
"policyengine_us_data.datasets.cps.extended_cps._splice_clone_feature_predictions"
@@ -878,7 +878,7 @@
878878
"docstring": "Assert that final exported variables are leaf inputs.",
879879
"id": "computed_export_contract",
880880
"kind": "function",
881-
"line": 1802,
881+
"line": 1782,
882882
"metadata": {
883883
"api_refs": [
884884
"policyengine_us_data.datasets.cps.extended_cps.ExtendedCPS._assert_no_computed_variables_exported"
@@ -972,7 +972,7 @@
972972
"docstring": "Second-stage QRF: train on CPS, predict for PUF clones.\n\nFor the PUF clone half of the extended CPS we need plausible values\nof CPS-only variables (retirement distributions, transfers, hours,\nSPM components, etc.) that are consistent with the clone's\nPUF-imputed income -- not just naively copied from the CPS donor.\n\nWe train a QRF on CPS person-level data where:\n * predictors = demographics + key income variables\n * outputs = CPS-only variables listed in\n ``CPS_ONLY_IMPUTED_VARIABLES``\n\nFor PUF clone prediction we use the PUF-imputed income values\nfrom the second half of ``data`` (the clone half, which already\nhas PUF-imputed income from stage 1).\n\nUses ``fit_predict()`` with ``max_train_samples`` instead of\nmanual sampling + separate fit/predict.\n\nArgs:\n data: Extended dataset dict after ``puf_clone_dataset()`` --\n already doubled, with PUF-imputed income in the second half.\n time_period: Tax year.\n dataset_path: Path to the CPS h5 file for Microsimulation.\n\nReturns:\n DataFrame with one column per CPS-only variable, containing\n predicted values for the PUF clone half (person-level).",
973973
"id": "cps_only",
974974
"kind": "function",
975-
"line": 646,
975+
"line": 642,
976976
"metadata": {
977977
"api_refs": [
978978
"policyengine_us_data.datasets.cps.extended_cps._impute_cps_only_variables"
@@ -1325,7 +1325,7 @@
13251325
"docstring": "Check formula-reconstructed housing assistance before export.\n\nThe final H5 must not export formula outputs such as ``housing_assistance``.\nThis guard verifies that the remaining leaf inputs still make those\nformulas produce nonzero values before the export contract strips or\nrejects computed variables.",
13261326
"id": "housing_assistance_microsim_validation",
13271327
"kind": "function",
1328-
"line": 1572,
1328+
"line": 1552,
13291329
"metadata": {
13301330
"api_refs": [
13311331
"policyengine_us_data.datasets.cps.extended_cps.ExtendedCPS._validate_housing_assistance_microsimulation"
@@ -3243,7 +3243,7 @@
32433243
"docstring": "Run QRF imputation for PUF variables.\n\nStratified-subsamples PUF records (top 0.5% by AGI kept,\nrest randomly sampled to ~20K total), trains QRF, and\npredicts on CPS data.\n\nArgs:\n data: CPS data dict.\n time_period: Tax year.\n puf_dataset: PUF dataset class or path.\n dataset_path: Path to CPS h5 for computing\n demographic predictors via Microsimulation.\n\nReturns:\n Tuple of (y_full_imputations, y_override_imputations)\n as dicts of {variable: np.ndarray}.",
32443244
"id": "puf_qrf_pass",
32453245
"kind": "function",
3246-
"line": 914,
3246+
"line": 898,
32473247
"metadata": {
32483248
"api_refs": [
32493249
"policyengine_us_data.calibration.puf_impute._run_qrf_imputation"
@@ -3270,7 +3270,7 @@
32703270
"docstring": "Replace PUF clone half of CPS-only variables with QRF predictions.\n\nAfter ``puf_clone_dataset()`` the CPS-only variables in the second\nhalf are naive copies of the CPS donor values. This function\nreplaces them with the second-stage QRF predictions that are\nconsistent with the clone's PUF-imputed income.\n\nArgs:\n data: Extended dataset dict (already doubled).\n predictions: DataFrame from ``_impute_cps_only_variables()``.\n time_period: Tax year.\n dataset_path: Path to CPS h5 file for entity mapping.\n\nReturns:\n Modified data dict with CPS-only variables spliced in.",
32713271
"id": "qrf_pass2",
32723272
"kind": "function",
3273-
"line": 1037,
3273+
"line": 1017,
32743274
"metadata": {
32753275
"api_refs": [
32763276
"policyengine_us_data.datasets.cps.extended_cps._splice_cps_only_predictions"
@@ -3562,7 +3562,7 @@
35623562
"docstring": "",
35633563
"id": "reweight",
35643564
"kind": "function",
3565-
"line": 487,
3565+
"line": 503,
35663566
"metadata": {
35673567
"api_refs": [
35683568
"policyengine_us_data.datasets.cps.enhanced_cps.reweight"
@@ -3697,7 +3697,7 @@
36973697
"docstring": "Run structural integrity checks on an H5 file.\n\nArgs:\n h5_path: Path to the H5 dataset file.\n period: Tax year (used for variable keys).\n\nReturns:\n List of {check, status, detail} dicts.",
36983698
"id": "sanity_checks",
36993699
"kind": "function",
3700-
"line": 331,
3700+
"line": 329,
37013701
"metadata": {
37023702
"api_refs": [
37033703
"policyengine_us_data.calibration.sanity_checks.run_sanity_checks"
@@ -3724,7 +3724,7 @@
37243724
"docstring": "Impute net_worth and auto_loan from SCF.\n\nArgs:\n data: CPS data dict.\n state_fips: State FIPS per household.\n time_period: Tax year.\n dataset_path: Path to CPS h5 for Microsimulation.\n\nReturns:\n Updated data dict.",
37253725
"id": "scf_qrf",
37263726
"kind": "function",
3727-
"line": 1108,
3727+
"line": 1113,
37283728
"metadata": {
37293729
"api_refs": [
37303730
"policyengine_us_data.calibration.source_impute._impute_scf"
@@ -3778,7 +3778,7 @@
37783778
"docstring": "Impute tip_income, liquid assets, and vehicle signals from SIPP.\n\nArgs:\n data: CPS data dict.\n state_fips: State FIPS per household.\n time_period: Tax year.\n dataset_path: Path to CPS h5 for Microsimulation.\n\nReturns:\n Updated data dict.",
37793779
"id": "sipp_qrf",
37803780
"kind": "function",
3781-
"line": 649,
3781+
"line": 650,
37823782
"metadata": {
37833783
"api_refs": [
37843784
"policyengine_us_data.calibration.source_impute._impute_sipp"
@@ -3805,7 +3805,7 @@
38053805
"docstring": "Re-impute ACS/SIPP/ORG/SCF variables from donor surveys.\n\nOverwrites existing imputed values in data. ACS uses\nstate_fips as a QRF predictor; ORG uses state plus labor-market\npredictors; SIPP and SCF use only demographic and financial\npredictors (no state data).\n\nArgs:\n data: CPS dataset dict {variable: {time_period: array}}.\n state_fips: State FIPS per household.\n time_period: Tax year.\n dataset_path: Path to CPS h5 for Microsimulation.\n skip_acs: Skip ACS imputation.\n skip_sipp: Skip SIPP imputation.\n skip_org: Skip ORG imputation.\n skip_scf: Skip SCF imputation.\n\nReturns:\n Updated data dict with re-imputed variables.",
38063806
"id": "source_impute",
38073807
"kind": "function",
3808-
"line": 219,
3808+
"line": 220,
38093809
"metadata": {
38103810
"api_refs": [
38113811
"policyengine_us_data.calibration.source_impute.impute_source_variables"

0 commit comments

Comments
 (0)