feature-engineering/target-encoder-before-outer-cv
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| Feature review | error | none, edit by hand | All versions |
target-encoder-before-outer-cv
Section titled “target-encoder-before-outer-cv”A resolved sklearn.preprocessing.TargetEncoder fit and transform produces all-row features passed to an outer score or search in the same scope.
Run xpd feature-engineering to supply the feature and pipeline context.
Diagnostic message
Section titled “Diagnostic message”Fit the target encoder inside outer cross-validation.See all rules in the Feature review pack.