-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Closed
Labels
Description
Now that we have pipeline['preprocessor'] do we want to extend this to ColumnTransformer. For example:
preprocessor = ColumnTransformer(
('ohe', OneHotEncoder(), [...]),
('scaler', StandardScaler(), [...]))
pipeline = Pipeline(
('preprocessor', preprocessor),
('est', RidgeCV())
)
feature_names = pipeline['preprocessor']['ohe'].get_feature_names(...)Currently we would have to do
feature_names = (pipeline['preprocessor']
.named_transformers_['ohe']
.get_feature_names(...))