drop_correlated_features sets are not always correlated

Abierto
#327 11 comentarios 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
28/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python, scikit-learn

Línea de trabajo

Start with the DropCorrelatedFeatures class and the code that builds the correlated feature sets from the correlation matrix. Check whether a set can contain pairs that fall below the threshold, and whether the result depends on column order. The maintainer has not picked an approach, and the last comment was over three years ago, so confirm the direction with them before coding. Done means every feature in a returned set is correlated above the threshold with every other member, and the output is the same regardless of column order.

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

Descripción

Is your feature request related to a problem? Please describe.
The class drop_correlated_features creates a set of correlated features which might not work accurately some times; it assumes transitivity which is not a property of correlation. It is also not deterministic, depending on the order of the columns, the sets might end up being different.

Describe the solution you'd like
Each feature in a set should be correlated to the others over the threshold stablished, currently not always happen with the existing implementation.

Describe alternatives you've considered
You might implement hierarchical clustering to create the sets. See here for example: https://stackabuse.com/hierarchical-clustering-with-python-and-scikit-learn/

Additional context
The solution is rather simple. @solegalli let me know if you are accepting pull requests and I can try an initial solution, in case this is indeed an issue instead of a misinterpretation from my side

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.