Request: selecting `variables` through a user-supplied function

Ouverte
#589 5 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
À l'abandon
Stack technique
python, scikit-learn

Piste de recherche

Start by locating transformers that accept variables and reading how they select and validate column names. Check their existing tests to understand what inputs and behavior are covered. Done means transformers can accept a function that receives column names and indicates which variables to transform, with tests covering the selection behavior.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Transformers in this library take an argument variables which is expected to be a list of column names.

Oftentimes, one has variables that follow some natural grouping, and would want to apply a given transformer to all variables that match some naming pattern. It's relatively easy to do this when there is a single modeling pipeline by creating python variables with their names, but oftentimes one wants to try for example the same transformer pipeline with different groups of features, or slight variations of e.g. earlier transformations, etc. and thus the exact list of variables would vary from one run to another, and the transformers would need to be re-defined.

Would be helpful if the transformers could also accept variables as a function that would be applied to the column names and return True or False as indicators of whether the transformer applies to each variable or not.

Langage dominant
Python
Étoiles
2.3k
Forks
391
Merge moyen
11 h 34 min
PR mergées (30 j)
11

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de feature-engine/feature_engine

Toutes les issues de feature-engine/feature_engine

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.