GuassianDistributionDiscretizer

Offen
#385 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
22/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Bereich
data

Rechercherichtung

The request is for a new discretiser that sets bin edges from the mean and standard deviation of each column, similar to the existing EqualFrequencyDiscretiser and EqualWidthDiscretiser and the ArbitraryDiscretiser the reporter mentions. Read those classes first to learn the fit/transform contract, then decide how bins and the 3-4 standard deviation limits should be set. The issue has no agreed design and no assignee, so confirm the approach with maintainers before writing code. Done means a fitted transformer that maps values to a fixed number of bins with tests.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Is your feature request related to a problem? Please describe.
I'm developing a DigitalCommerceIndex class (in Python) that can rank U.S. counties on any continuous numeric variable. To do so, the class allows the user to discretize the continuous variables based on params like index_scale, e.g. 1 to 5 and 1 to 10 and strategy which references feature-engine's EqualFrequencyDiscrteriser and EqualWidthDiscretiser.

I believe that EqualFrequencyDiscretizer is the most appropriate for 99.9% of the problems.

What if I want to rank the U.S. counties on a Guassian-like distribution? I presume 68% of the counties will fall within the average, therefore it would be most appropriate to assign them such a score.

Describe the solution you'd like
feature-engine offers a GuassianDistributionDiscretizer!

The number of bins can be 6 or 8, limiting the binning to 3 or 4 standard deviations

Describe alternatives you've considered
I thought about using feature-engine's ArbitraryDiscretiser. However, the ArbirtraryDiscretiser requires a predefined dictionary. Meanwhile, the GuassianDistributionDiscretizer will dynamically adjust to the continuous variables.

Additional context
It's kind of like StandardScaler discretization.

Vorherrschende Sprache
Python
Sterne
2.3k
Forks
391
Ø Merge
11 Std. 34 Min.
Gemergte PRs (30 T.)
11

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus feature-engine/feature_engine

Alle Issues in feature-engine/feature_engine

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.