skmultiflow.transform.
OneHotToCategorical
Transform one-hot encoded data into categorical feature(s).
Receives a features matrix, with some binary features (one-hot), and transform them into single categorical feature.
Each inner list contains all the attribute indexes that are associated with the same categorical feature.
Methods
fit(self, X, y)
fit
get_info(self)
get_info
Collects and returns the information about the configuration of the estimator
get_params(self[, deep])
get_params
Get parameters for this estimator.
partial_fit(self, X[, y, classes])
partial_fit
Partial fit the Transformer object.
partial_fit_transform(self, X[, y, classes])
partial_fit_transform
Partial fit and transform the Transformer object.
reset(self)
reset
Resets the estimator to its initial state.
set_params(self, **params)
set_params
Set the parameters of this estimator.
transform(self, X)
transform
Transform one hot features in the X matrix into int coded categorical features.
Configuration of the estimator.
If True, will return the parameters for this estimator and contained subobjects that are estimators.
Parameter names mapped to their values.
The feature’s matrix.
An array-like with all the class labels from all samples in X.
The partially fitted model.
The method works on simple estimators as well as on nested objects (such as pipelines). The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object.
<component>__<parameter>
The sample or set of samples that should be transformed.
The transformed data.