Categorical preprocessing#
scikitplot.preprocessing currently provides two categorical encoders: GetDummies for pandas-style dummy expansion and DummyCodeEncoder for a fitted scikit-learn-style transform/inverse-transform workflow.
Important
Fit categorical state on training data and reuse it for validation/test data. Creating dummies independently for each split can produce incompatible columns and is a common source of silent model errors.
Choose pandas-style GetDummies or sklearn-style DummyCodeEncoder.
Column selection, separators, drop behavior, sparse output, dtype, and unknown categories.
Fit/transform/inverse-transform categorical encoding with estimator semantics.
Pipelines, feature names, training/test separation, and sparse output.
The two public encoder classes and their main contracts.
Current correctness findings and validation mismatches.
Which page should I use?#
Start with Getting started. Then choose the page that owns the decision you are making: architecture and lifecycle, configuration, persistence, performance, public API, or limits. The guide intentionally separates those concerns so examples do not accidentally become policy.
Examples#
See Preprocessing for executable examples that accompany this guide.