Skip to content

Commit 480de99

Browse files
committed
Update publication candidate
1 parent 20e7ff0 commit 480de99

4 files changed

Lines changed: 15 additions & 8 deletions

File tree

changelog.d/1150.fixed.md renamed to .github/publication_candidates/usdata-gha26640301080-a1/changelog.d/1150.fixed.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-gha26640301080-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-gha26632843946-a1",
5+
"run_id": "usdata-gha26640301080-a1",
66
"would_release_as_at_build_time": "1.115.6"
77
}

docs/generated/pipeline_api.json

Lines changed: 7 additions & 7 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": 421,
6+
"line": 541,
77
"metadata": {
88
"api_refs": [
99
"policyengine_us_data.datasets.cps.enhanced_cps.create_aca_2025_takeup_override"
@@ -3189,7 +3189,7 @@
31893189
"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}.",
31903190
"id": "puf_qrf_pass",
31913191
"kind": "function",
3192-
"line": 898,
3192+
"line": 927,
31933193
"metadata": {
31943194
"api_refs": [
31953195
"policyengine_us_data.calibration.puf_impute._run_qrf_imputation"
@@ -3247,7 +3247,7 @@
32473247
"docstring": "Clone CPS data 2x and impute PUF variables on one half.\n\nThe first half keeps CPS values when CPS reports the variable.\nVariables absent from CPS get PUF QRF predictions on both halves\nso positive-weight CPS rows can support those calibration targets.\nThe second half still gets full PUF QRF imputation and starts with\nhousehold weights set to zero.\n\nArgs:\n data: CPS dataset dict {variable: {time_period: array}}.\n state_fips: State FIPS per household, shape (n_households,).\n block_geoid: Optional 15-character Census block GEOID per household.\n cd_geoid: Optional congressional district GEOID per household.\n county_fips: Optional 5-digit county FIPS per household.\n time_period: Tax year.\n puf_dataset: PUF dataset class or path for QRF training.\n If None, skips QRF (same as skip_qrf=True).\n skip_qrf: If True, skip QRF imputation (for testing).\n dataset_path: Path to CPS h5 file (needed for QRF to\n compute demographic predictors via Microsimulation).\n\nReturns:\n New data dict with doubled records.",
32483248
"id": "record_double",
32493249
"kind": "function",
3250-
"line": 475,
3250+
"line": 504,
32513251
"metadata": {
32523252
"api_refs": [
32533253
"policyengine_us_data.calibration.puf_impute.puf_clone_dataset"
@@ -3481,7 +3481,7 @@
34813481
"docstring": "Impute retirement contributions for the PUF half using QRF.\n\nTrains on CPS data (which has realistic income-to-contribution\nrelationships) and predicts onto PUF clone records using\nPUF-imputed income as input features.\n\nNote: ``pre_tax_contributions`` is separately imputed from PUF\nvia OVERRIDDEN_IMPUTED_VARIABLES. In PolicyEngine it is a\nformula (``adds`` of traditional_401k + traditional_403b + \u2026),\nso the stored value is only used when the formula is bypassed.\nA future improvement could reconcile or drop the stored\npre_tax_contributions in favour of the formula sum.\n\nArgs:\n data: CPS data dict.\n puf_imputations: Dict of PUF-imputed variable arrays.\n time_period: Tax year.\n dataset_path: Path to CPS h5 for Microsimulation.\n\nReturns:\n Dict mapping retirement variable names to imputed arrays.\n Returns all-zeros on QRF failure.",
34823482
"id": "retire_impute",
34833483
"kind": "function",
3484-
"line": 769,
3484+
"line": 798,
34853485
"metadata": {
34863486
"api_refs": [
34873487
"policyengine_us_data.calibration.puf_impute._impute_retirement_contributions"
@@ -3508,7 +3508,7 @@
35083508
"docstring": "",
35093509
"id": "reweight",
35103510
"kind": "function",
3511-
"line": 504,
3511+
"line": 624,
35123512
"metadata": {
35133513
"api_refs": [
35143514
"policyengine_us_data.datasets.cps.enhanced_cps.reweight"
@@ -3784,7 +3784,7 @@
37843784
"docstring": "Predict SS sub-components for PUF half from demographics.\n\nThe CPS-PUF link is statistical (not identity-based), so the\npaired CPS record's sub-component split is just one noisy draw.\nA QRF trained on all CPS SS recipients gives a better expected\nprediction by pooling across the full training set.\n\nFor all PUF records with positive social_security, this function\npredicts shares via QRF (falling back to an age heuristic) and\nscales them to match the imputed total. PUF records with zero\nSS get all sub-components cleared to zero.\n\nModifies ``data`` in place. Only the PUF half (indices\nn_cps .. 2*n_cps) is changed.\n\nArgs:\n data: Dataset dict {variable: {time_period: array}}.\n n_cps: Number of records in the CPS half.\n time_period: Tax year key into data dicts.",
37853785
"id": "ss_reconcile",
37863786
"kind": "function",
3787-
"line": 407,
3787+
"line": 436,
37883788
"metadata": {
37893789
"api_refs": [
37903790
"policyengine_us_data.calibration.puf_impute.reconcile_ss_subcomponents"
@@ -4574,7 +4574,7 @@
45744574
"docstring": "Impute weeks_unemployed for the PUF half using QRF.\n\nUses CPS as training data and imputed PUF demographics as\ntest data, preserving the joint distribution of weeks with\nunemployment compensation.\n\nArgs:\n data: CPS data dict.\n puf_imputations: Dict of PUF-imputed variable arrays.\n time_period: Tax year.\n dataset_path: Path to CPS h5 for Microsimulation.\n\nReturns:\n Array of imputed weeks for PUF half.",
45754575
"id": "weeks_impute",
45764576
"kind": "function",
4577-
"line": 661,
4577+
"line": 690,
45784578
"metadata": {
45794579
"api_refs": [
45804580
"policyengine_us_data.calibration.puf_impute._impute_weeks_unemployed"

0 commit comments

Comments
 (0)