'Transform X using one-hot encoding.
Parameters
X : array-like, shape [n_samples, n_features]
Input array of type int.
Returns
X_out : sparse matrix if sparse=True else a 2-d array, dtype=int
Transformed input.'

def transform(self, X):

    return _transform_selected(X, self._transform, self.categorical_features, copy=True)
