GuassianDistributionDiscretizer

オープン
#385 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
22/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python, scikit-learn
領域
data

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
2.3k
フォーク
391
平均マージ
11時間 34分
マージ済み PR(30日)
11

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

feature-engine/feature_engine のほかの issue

feature-engine/feature_engine の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。