Make feature selection transforms return columns in inverse_transform
#688
Labels
enhancement
New feature or request
inverse_transform
#688
🚀 Feature Request
Make feature selection transforms return columns in
inverse_transform
Motivation
Inverse transformation might be impossible to the other transforms because of the absence of some columns removed by feature selection
Proposal
BaseFeatureSelectionTransform
andFilterFeaturesTransform
return_features: bool=False
transform
store the columns that will be remover inself._df_removed
(only for return_features=True)inverse_transform
, should return the columns formself._df_removed
(only for return_features=True)Test cases
For both transforms:
transform
correctly store the data frame with removed columnsinverse_transform
correctly return the removed columnsreturn_features
works correctlyAlternatives
No response
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: