1.2 KiB
1.2 KiB
PD V3 Pre-Processing
- Inputs: Raw Prod/Live feature values for all PD v3 models.
- Outputs: Three treated feature dictionaries (
model_a_features,model_b_features,model_t_features). - Artifacts: Driver CSVs stored under
drivers/. - Tests:
python -m unittest sequence-3.pd_v3_pre_processing.test_block. - Signature:
__main__keeps an explicit typed parameter list covering every raw feature (int/float/str) and builds the record from those args before treatment; keep it aligned withrequest_schema.json.
Schema notes
request_schema.jsonnow enumerates every raw Prod/Live variable as a top-level property (norecordwrapper) so the contract mirrorsdriver/request_schema_sample.json.response_schema.jsonreflects the array-based payload returned byblock.__main__(model_*_featuresare ordered lists of{ "name": feature, "value": treated_value }objects with feature name enums to enforce the allowlists).- Both schemas are frozen and describe the flat/array-of-dict structures shown above; do not introduce dict-of-dicts or object-of-dicts in these files even if a future change reorients the Python implementation.