deephyper.skopt.space.transformers.LabelEncoder#
- class deephyper.skopt.space.transformers.LabelEncoder(X=None)[source]#
Bases:
Transformer
LabelEncoder that can handle categorical variables.
Methods
Fit a list or array of categories.
Inverse transform integer categories back to their original representation.
Transform an array of categories to a one-hot encoded representation.
- fit(X)[source]#
Fit a list or array of categories.
- Parameters:
X (array-like, shape=(n_categories,)) – List of categories.