When passing ("rfe", rfe) into the pipeline steps, the model will still run, but no output specific to feature names generated is produced unless the user explicitly passes the input feature_selection=True.
Solution
Either:
Create a custom exception that forces the user to set feature_selection to True if passing rfe into the pipeline
or :
Create an if block that sets feature_selection=True when rfe is detected in pipeline_steps.
Problem
When passing
("rfe", rfe)
into the pipeline steps, the model will still run, but no output specific to feature names generated is produced unless the user explicitly passes the inputfeature_selection=True
.Solution
Either:
Create a custom exception that forces the user to set
feature_selection
toTrue
if passingrfe
into the pipelineor :
Create an if block that sets
feature_selection=True
whenrfe
is detected inpipeline_steps
.