Skip to content

Get Selected Features by Preprocessing Steps #524

Closed
@teresaconc

Description

@teresaconc

Hi, I'm interested in using the results of the models found in a more independent way. Is there any way to get the selected features when the preprocessing step is a feature selection algorithm?

So far my approach is:

  1. Build a Pipeline with all the preprocessing steps that were chosen in the model
  2. set the default parameters of the configuration space to the ones given by the results
  3. apply a fit_transformer to transform the dataset (before using the estimator).

This is similar to what you did in the function test_weighting_effect (test file test_balancing.py). The thing is when I call the fit_transformer method the data transformed that is returned is a numpy array and not a dataframe (it doesn't have the column headers) so I can't know which were the features kept and removed.

Is there any way I can accomplished this? Perhaps in a easier way than this approach?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions