feat: Custom threshold in SmartCorrelatedFeatures

Open
#287 9 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Start from the SmartCorrelatedFeatures class and its threshold parameter, which currently defaults to 0.8 and assumes correlation measures bounded between -1 and +1. The issue asks for a user-supplied function in place of the fixed threshold so that measures like mutual information can be used, and the linked PDF lists candidate measures. The thread has nine comments, no assignee and no linked pull request, and the last comment is about 1940 days old, so confirm with maintainers how the new parameter should behave before writing code.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.

Currently SmartCorrelatedFeatures takes correlation measures that have a similar range (between -1 and +1) and select features by a fixed threshold value (defaults to 0.8).

Describe the solution you'd like

Extend the threshold selection to a custom function in order to be able to apply other correlation measures that have different range as mutual information. Other measures to consider could be find here.

Describe alternatives you've considered
An alternative is to create a separate class.

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.