LabelEncoder#
- class pinnx.utils.transformers.LabelEncoder(X=None)[source]#
LabelEncoder 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.
LabelEncoder that can handle categorical variables.
Fit a list or array of categories.
X (array-like, shape=(n_categories,)) – List of categories.