Skip to content

feature-engineering/target-encoder-before-outer-cv

Pack Severity Fix Versions
Feature review error none, edit by hand All versions

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.

Fit the target encoder inside outer cross-validation.

See all rules in the Feature review pack.