Review model features
Run xpd feature-engineering <paths> to verify how each candidate model feature relates to the target, prove it is available at the prediction cutoff, evaluate separate feature and target transforms, grouping tiers, and sample weighting across scikit-learn, skrub, feature_engine, scikit-lego, optbinning, interpret, Category Encoders, CoreForecast, UtilsForecast, and MLForecast, and measure paired ablation lift across development folds without touching the holdout set.
What xpd feature-engineering checks
Section titled “What xpd feature-engineering checks”| Group | Example finding kinds |
|---|---|
| Cutoff and folds | encode-before-split, fit-before-split, scaler-fit-before-split, scaled-target-without-inverse, transformed-target-pair, target-encoder-before-outer-cv, rolling-includes-current, rolling-crosses-groups, forecasting-nonpositive-periods, transform-with-test-target, fippy-importance-on-training-rows, optbinning-binning-before-split |
| Computation | duplicate-feature-computation, node-mutates-input, frame-column-write, decay-on-shuffled-rows, interval-encoder-ignored-span, minhash-murmur-with-minmax, minhash-odd-components-minmax, string-encoder-hashing-vocabulary, quantiles-capping-invalid-fold, local-robust-invalid-scale, boxcox-guerrero-without-season-length, global-target-without-inverse, target-robust-invalid-scale, future-exog-zero-horizon, optbinning-invalid-bin-size, optbinning-continuous-binning-woe-metric |
| Pipeline | metadata-routing, pipeline-fit-params, transformed-target-pipeline-weight, decay-without-sample-weight, grouped-shrinkage-arguments, monotonic-spline-without-positive, encoder-noise-without-seed, choose-log-nonpositive-low, unfitted-keep-subsampling, decision-tree-encoder-unseen-no-fill, smart-corr-missing-values-raise, smart-corr-model-performance-no-estimator, fippy-scalar-loss-function, fippy-conditional-without-sampler, fippy-loco-missing-set-y-train, optbinning-invalid-monotonic-trend, optbinning-user-splits-fixed-without-user-splits, interpret-ebm-monotonize-with-interactions, interpret-ebm-invalid-monotonize-args, interpret-ebm-unseeded-random-state, weight-col-on-pipeline, mase-without-train-df |
Declare features and pipeline scope in a manifest
Section titled “Declare features and pipeline scope in a manifest”Commit feature-engineering.json at the repository root to declare the target, prediction cutoff, development snapshot, holdout boundary, baseline columns, optional pipeline owner and grouping columns, and every candidate feature or deferred hypothesis.
{ "target": "price", "prediction_cutoff": "11:00 UTC on the day before delivery", "development": {"snapshot": "training-2025", "holdout": "delivery year 2026"}, "baseline": ["hour"], "pipeline": {"owner": "pipeline.py", "group_cols": ["hour"]}, "inputs": {"hour": "Delivery hour", "load": "Load forecast", "wind": "Wind forecast"}, "features": [ {"id": "residual", "name": "Residual load", "kind": "feature", "owner": "features.py", "node": "residual_load", "column": "residual_load"} ]}Run a recorded review
Section titled “Run a recorded review”- Research each feature's domain mechanism from primary sources and verify input publication and revision times against
prediction_cutoff. - Commit the manifest, feature modules, and a development-only adapter defining
review()(with optionalgroup_columnsand typedvariantsfor comparing feature scalers and nonlinear bases, separate target transforms or native losses, grouped transforms versus hierarchical shrinkage models, and sample weighting or decay with isolatedmetadata_routing), then runxpd feature-engineering start --adapter adapter.py --check "git diff --check". - Inspect findings, lineage, baseline and candidate nonlinearity, target drift, group slope heterogeneity, and fold measurements with
xpd feature-engineering --format json. Readread.graphin that output to check node dependencies, and usexpd equivwhen rewiring code that should preserve results, andxpd api xpd/recipe/feature-representationfor runnable patterns across all bundled feature libraries. - Review paired fold ablation scores alongside stability, correlation clusters, unseen validation levels, and pipeline variant lift. Keep low-lift features only with a source-backed domain reason tied to measured lift, record unimplemented hypotheses with their deferral reason, and settle
pipeline/feature-transforms,pipeline/target-transforms,pipeline/grouping, andpipeline/weightingagainst the measured evidence. - Record fixes, accepted findings, and checklist verdicts with
xpd feature-engineering plan plan.json. Approve interface changes withxpd feature-engineering approve <fix>, commit one fix, and verify it withxpd feature-engineering gate <fix>. A kept gate reopens checklist answers whose measured evidence changed. - Restore an abandoned edit before
xpd feature-engineering drop <fix> --reason "<reason>", resume withxpd feature-engineering status, and close the ledger withxpd feature-engineering finish.
Use the catalog to review the feature and pipeline questions:
$ xpd feature-engineering --questions --format json | jq -c '[.questions[].id] | sort'["ablation-scorer","availability","feature-exclusions","feature-transforms","grouping","lineage","mechanism","regimes","target-transforms","value","weighting"]See the command reference for the full manifest and adapter contracts.