Skip to content
Quantoros

An all-missing training column disappears after imputation and breaks a fixed schema. What should you configure?

Classic MLLevel: IntermediateEmpty feature schema

An all-missing training column disappears after imputation and breaks a fixed schema. What should you configure?

Hints
  • Inspect training-time empty columns.
  • Shape stability and predictive value differ.

Answer

Use keep_empty_features=True when a stable feature schema is needed. Verify the constant fill and downstream meaning; preserving shape does not create information.

Source and licence: scikit-learn 1.7.2 — impute · BSD-3-Clause · answer: Quantoros editorial

Related questions