DropHighPSIFeatures support for missing values?

Open
#883 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

  • #1110 by @lcrmorin — closed without merging

Assessment

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

Research direction

Start with the DropHighPSIFeatures class and the open pull request #1110, which is already linked to this issue and may already implement part of the change. Decide how missing values should be binned when computing PSI, such as treating NaN as its own bin, and check the maintainers' answer before writing code. Done means the class handles features with missing values under the agreed rule and its tests cover that case.

Written by the indexing model from the issue text.

Description

If I understand it correctly, currently DropHighPSIFeatures only support either dropping entries with missing values completely or "forcing" the user to impute those beforehand.
An (easy) alternative could be to treat missings as their own bin during the calculation of the PSI value. Was there a reason why this wasn't implemented this way? And what would be a preferred/suggested way to deal with features which contain missing values during the calculation of PSI?

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.