Skip to content

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.

feature-engineering.json +codeCheck cutoff, rollingwindows, splines,optbinning, interpret,encoders, skrub,feature_engine, targetinverses, grouping, andweightsDevelopment-only --adapterMeasure baseline andcandidate nonlinearity,target drift, group slopeheterogeneity, and variantsFinding ledger, per-featureand pipeline checklistsstart -> plan -> gate ->finish
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.

feature-engineering.json
{
"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"}
]
}
  1. Research each feature's domain mechanism from primary sources and verify input publication and revision times against prediction_cutoff.
  2. Commit the manifest, feature modules, and a development-only adapter defining review() (with optional group_columns and typed variants for comparing feature scalers and nonlinear bases, separate target transforms or native losses, grouped transforms versus hierarchical shrinkage models, and sample weighting or decay with isolated metadata_routing), then run xpd feature-engineering start --adapter adapter.py --check "git diff --check".
  3. Inspect findings, lineage, baseline and candidate nonlinearity, target drift, group slope heterogeneity, and fold measurements with xpd feature-engineering --format json. Read read.graph in that output to check node dependencies, and use xpd equiv when rewiring code that should preserve results, and xpd api xpd/recipe/feature-representation for runnable patterns across all bundled feature libraries.
  4. 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, and pipeline/weighting against the measured evidence.
  5. Record fixes, accepted findings, and checklist verdicts with xpd feature-engineering plan plan.json. Approve interface changes with xpd feature-engineering approve <fix>, commit one fix, and verify it with xpd feature-engineering gate <fix>. A kept gate reopens checklist answers whose measured evidence changed.
  6. Restore an abandoned edit before xpd feature-engineering drop <fix> --reason "<reason>", resume with xpd feature-engineering status, and close the ledger with xpd feature-engineering finish.

Use the catalog to review the feature and pipeline questions:

Terminal window
$ 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.