deephyper.skopt.space.space.LabelEncoder#
- class deephyper.skopt.space.space.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
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.