drop_correlated_features sets are not always correlated

Đang mở
#327 11 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
28/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python, scikit-learn
Lĩnh vực
machine-learning

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
2.3k
Fork
391
Merge trung bình
11 giờ 34 phút
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của feature-engine/feature_engine

Tất cả issue của feature-engine/feature_engine

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.