Request: skipping without error when there are no variables to transform

Ouverte
#599 4 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
25/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
python, scikit-learn
Domaine
data

Piste de recherche

The request is for an option that stops transformers such as MatchCategories from raising an error when automatic variable selection finds no matching columns. Start by reading how the transformers choose their variables when no list is given, and where they raise on an empty selection. The issue does not settle the option's name or default, so agree the design with maintainers before coding. Done means an empty selection can be skipped on request, with tests for both the error and the skip paths.

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

Description

Transformers in this package have the nice functionality to automatically apply to all variables that are either numerical or categorical depending on what the transformer does if the list of variable names is not supplied.

Sometimes, one wants to perform automated feature selection as steps before or after some transformer, in which case if for example one has a transformer like MatchCategories and the selector drops all categorical variables, there will be an error later on in the pipeline as there won't be any columns for the transformer.

Would be nice if there could be an option to toggle off erroring on empty variable lists.

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.