drop_correlated_features sets are not always correlated

Aberta
#327 11 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
28/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
python, scikit-learn
Domínio
machine-learning

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Python
Estrelas
2.3k
Forks
391
Merge médio
11h 34min
PRs com merge (30d)
11

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de feature-engine/feature_engine

Todas as issues de feature-engine/feature_engine

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.