alteryx / alteryx/categorical_encoding

M-Estimate

Offen
#3 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
New Method Idea
Vorherrschende Sprache
Jupyter Notebook
Sterne
51
Forks
13
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**Describe the encoding method below. Attach any relevant links that reference the encoding method.**
Very similar to Target Encoding--only difference is that it has only one tunable parameter (m) versus target encoder's two tunable parameters (min_samples_leaf and smoothing).
https://contrib.scikit-learn.org/categorical-encoding/mestimate.html

**Describe the encoder class method. Any additional functions aside from the essential `fit()`, `transform()`, and `get_features()`? For example, Hashing Encoder has `get_hash_method()`.**
Similar to Target Encoding.

**Describe the encoder primitive for use with Featuretools.**
Should have a mapping to encode any values in the dataframe column into its appropriate weighted average.

**Describe the use cases in which this encoder would be useful (what kinds of data, high-cardinality, etc.).**
Useful in high-cardinality data where one-hot encoding and other similar high-dimensionality resulting encoders do not work. Works in the same situations that Target Encoding does, but could be useful if Target's aforementioned parameters do not work for the situation.

**Input type?**
[Categorical]

**Output type?**
Numeric

**List third party libraries required:**
[category-encoders](https://pypi.org/project/category-encoders/)

**Describe encoding method's behavior with train, test, and new data.**
Use train to learn the averages, test to validate the encoding and ML models, and new data will be encoded based off of the fitted encoder from the train data step.

**Test cases.**
np.nan

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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