Add a Binarizer class

Abierto
#790 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python, scikit-learn

Línea de trabajo

The issue asks for a Binarizer transformer in feature_engine that works inside a Pipeline without a ColumnTransformer. The reporter mentions a BaseDiscretizer subclass they wrote, and the sklearn Binarizer is the reference behaviour. Before starting, ask a maintainer whether they want this, since the issue has no reply in 820 days. Done means a transformer that binarizes selected variables, keeps column names, and has tests.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

A clear and concise description of what the problem is.
I needed to binarize some features in a pipeline but saw that this wasn't currently implemented in the package; I instead used the sklearn Binarizer and ColumnTransformer classes. This wasn't ideal as I had to keep track of the new indexes at subsequent steps of the pipeline - one of the nice things about feature engine is that you don't have to worry about that.

Describe the solution you'd like
An implementation of a Binarizer class that bypasses the need for the corresponding sklearn class and that you can use directly within the Pipeline class instead of using ColumnTransformer.

Describe alternatives you've considered
I wrote a class that inherits from the BaseDiscretizer which works as described above.

Would it be OK for me to work on this and open a PR?

Lenguaje dominante
Python
Estrellas
2.3k
Forks
391
Merge medio
11 h 34 min
PR fusionados (30 d)
11

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de feature-engine/feature_engine

Todos los issues de feature-engine/feature_engine

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.