|
1228 | 1228 | "signature": "def fitted_weights_spec_for_scope(scope: FitScope | str) -> FittedWeightsSpec", |
1229 | 1229 | "source_file": "policyengine_us_data/fit_weights/specs.py" |
1230 | 1230 | }, |
| 1231 | + "full_promotion_result": { |
| 1232 | + "docstring": "Typed result for a full Stage 5 release promotion transaction.", |
| 1233 | + "id": "full_promotion_result", |
| 1234 | + "kind": "class", |
| 1235 | + "line": 62, |
| 1236 | + "metadata": { |
| 1237 | + "api_refs": [ |
| 1238 | + "policyengine_us_data.release_promotion.results.FullPromotionResult", |
| 1239 | + "policyengine_us_data.release_promotion.results.full.FullPromotionResult" |
| 1240 | + ], |
| 1241 | + "artifacts_in": [ |
| 1242 | + "release promotion transaction output" |
| 1243 | + ], |
| 1244 | + "artifacts_out": [ |
| 1245 | + "typed promotion result" |
| 1246 | + ], |
| 1247 | + "description": "Typed Stage 5 result model for full release promotion outcomes.", |
| 1248 | + "id": "full_promotion_result", |
| 1249 | + "label": "FullPromotionResult", |
| 1250 | + "node_type": "library", |
| 1251 | + "pathways": [ |
| 1252 | + "5_validate_and_promote_release" |
| 1253 | + ], |
| 1254 | + "source_file": "policyengine_us_data/release_promotion/results/full.py", |
| 1255 | + "stability": "moving", |
| 1256 | + "status": "transitional", |
| 1257 | + "validation_commands": [ |
| 1258 | + "uv run pytest tests/unit/release_promotion/test_results.py" |
| 1259 | + ] |
| 1260 | + }, |
| 1261 | + "object_path": "policyengine_us_data.release_promotion.results.full.FullPromotionResult", |
| 1262 | + "signature": "class FullPromotionResult", |
| 1263 | + "source_file": "policyengine_us_data/release_promotion/results/full.py" |
| 1264 | + }, |
1231 | 1265 | "geo_assign": { |
1232 | 1266 | "docstring": "Assign random census block geography to cloned\nCPS records.\n\nEach of n_records * n_clones total records gets a\nrandom census block sampled from the global\npopulation-weighted distribution. State and CD are\nderived from the block GEOID.\n\nArgs:\n n_records: Number of households in the base CPS\n dataset.\n n_clones: Number of clones (default 10).\n seed: Random seed for reproducibility.\n fixed_state_fips: Optional state FIPS per base record. Positive\n values constrain every clone of that record to blocks in the\n requested state; zero or missing values remain unrestricted.\n\nReturns:\n GeographyAssignment with arrays of length\n n_records * n_clones.", |
1233 | 1267 | "id": "geo_assign", |
|
3889 | 3923 | "signature": "def validate_area(sim, targets_df: pd.DataFrame, engine, area_type: str, area_id: str, display_id: str, dataset_path: str, period: int, training_mask: np.ndarray, variable_entity_map: dict, constraints_map: Optional[dict] = None) -> list", |
3890 | 3924 | "source_file": "policyengine_us_data/calibration/validate_staging.py" |
3891 | 3925 | }, |
| 3926 | + "typed_full_release_promotion": { |
| 3927 | + "docstring": "Run the existing transaction engine and wrap its output in a typed result.", |
| 3928 | + "id": "typed_full_release_promotion", |
| 3929 | + "kind": "function", |
| 3930 | + "line": 171, |
| 3931 | + "metadata": { |
| 3932 | + "api_refs": [ |
| 3933 | + "policyengine_us_data.utils.release_promotion.promote_full_release_with_result" |
| 3934 | + ], |
| 3935 | + "artifacts_in": [ |
| 3936 | + "staged release artifacts", |
| 3937 | + "release manifest inputs" |
| 3938 | + ], |
| 3939 | + "artifacts_out": [ |
| 3940 | + "FullPromotionResult" |
| 3941 | + ], |
| 3942 | + "description": "Compatibility wrapper that returns typed Stage 5 promotion results from the existing transaction engine.", |
| 3943 | + "id": "typed_full_release_promotion", |
| 3944 | + "label": "Typed Full Release Promotion", |
| 3945 | + "node_type": "library", |
| 3946 | + "pathways": [ |
| 3947 | + "5_validate_and_promote_release" |
| 3948 | + ], |
| 3949 | + "source_file": "policyengine_us_data/utils/release_promotion.py", |
| 3950 | + "stability": "moving", |
| 3951 | + "status": "transitional", |
| 3952 | + "validation_commands": [ |
| 3953 | + "uv run pytest tests/unit/release_promotion/test_results.py" |
| 3954 | + ] |
| 3955 | + }, |
| 3956 | + "object_path": "policyengine_us_data.utils.release_promotion.promote_full_release_with_result", |
| 3957 | + "signature": "def promote_full_release_with_result(config: FullReleasePromotionConfig, deps: FullReleasePromotionDependencies) -> 'FullPromotionResult'", |
| 3958 | + "source_file": "policyengine_us_data/utils/release_promotion.py" |
| 3959 | + }, |
3892 | 3960 | "unified_matrix_builder": { |
3893 | 3961 | "docstring": "Build sparse calibration matrix for cloned CPS records.\n\nProcesses clone-by-clone: each clone's records get their\nassigned geography, are simulated, and the results fill\nthe corresponding columns.\n\nArgs:\n db_uri: SQLAlchemy database URI.\n time_period: Tax year for calibration (e.g. 2024).\n dataset_path: Path to the base extended CPS h5 file.", |
3894 | 3962 | "id": "unified_matrix_builder", |
|
0 commit comments