SelectFromModel score extention

Open
#579 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale

Research direction

The request is for the feature_engine sel_ namespace to expose the score of the estimator behind a SelectFromModel-style selector, so start by reading how the existing selectors in feature_engine's selection module wrap sklearn's SelectFromModel and what they store after fit. The issue does not say which score or how it should be exposed, so confirm the design with the maintainers before coding. Done means a fitted selector returns the underlying estimator's score, with a test covering it.

Written by the indexing model from the issue text.

Description

It would be great to have a feature which extends from class sklearn.feature_selection.SelectFromModel and allows us to review the score of the base estimator from which the transformer is built,

Something like feature_engine.sel_.score

That will help to undertand the score of the model used to select the features, as it is not the same to select A and B from a model that scores 0.5 than other features from a model which scores 0.97.

Dominant language
Python
Stars
2.3k
Forks
391
Avg merge
11h 34m
Merged PRs (30d)
11

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from feature-engine/feature_engine

All issues in feature-engine/feature_engine

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.