CategoricalEncoder#
- class pinnx.utils.transformers.CategoricalEncoder[source]#
OneHotEncoder that can handle categorical variables.
- fit(X)[source]#
Fit a list or array of categories.
- Parameters:
X (array-like, shape=(n_categories,)) – List of categories.