[FEATURE] Categorical Feature Embedding via MLP
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 18/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python, scikit-learn
- Bereich
- machine-learning
Rechercherichtung
The request is to add a categorical encoder built on sklearn's MLPClassifier or MLPRegressor, using the hidden layer output as the encoding. Start from the existing categorical encoders in feature_engine/encoding and their shared base class to match the fit/transform API. The proposal lives in an external repository, and the issue thread has no maintainer decision, so confirm scope before writing code. Done means an encoder class with tests and docs that follows the library's conventions.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Using an Embeddinglayer of a deep neural network to encode categorical variables is a common practice also known as "entity embedding". One problem is, that you have to install a deeplearning library like pytroch or tensorflow to implement the neural network with an embedding layer and they are heavy libraries.
One alternative approach could be to use the MLPClassifier, MLPRegressor class from sklearn.neural_network build a neural network of your choice and use the last layer before the classification head to encode categorical variables. One could encode each variable alone or input more variable at once to encode so that the interactions can be found by the neural network.
I have coded this feature and you can take a look at mlpencoder. I would implement this feature in feature engine if you agree.
Examples: https://github.com/Pacman1984/mlpencoder/blob/master/mlpencoder/test.ipynb
- 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
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus feature-engine/feature_engine
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
feature-engine/feature_engine#1141 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
docs
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
feature-engine/feature_engine#393 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
feature-engine/feature_engine#1140 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
CategoricalImputer fails when fill_value is already a categoryEvtl. vergeben @AryanRG hat das vor 13 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 18/100
feature-engine/feature_engine#1113 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
OneHotEncoder loses a dummy name when it matches an encoded input columnEvtl. vergeben @Aadrit555 hat das vor 7 Tagen übernommen. Offen
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 25/100
feature-engine/feature_engine#1106 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in feature-engine/feature_engine
Ähnliche Issues
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount dueEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 79/100
developmentseed/titiler-covjson#164 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
awslabs/visual-asset-management-system#2164 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
MakazhanAlpamys/Soup#3589 ·
Maintainer antworten meist innerhalb von 1 Tag
-
channels status reports the wrong Enabled value for Feishu instances and default-enabled WebSocketOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag