Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid redundant calls to .abs in association matrix #45

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

jlopezpena
Copy link
Contributor

I noticed that in the recursive search for collinear features the absolute value of the association matrix gets computed over an over. This is a small optimisation that computes it only once in the dum copy of the matrix, then uses that throughout the recursive process.

This should make the process a bit faster when there are lots of features.

@ThomasBury ThomasBury self-requested a review March 9, 2024 17:32
@ThomasBury ThomasBury self-assigned this Mar 9, 2024
@ThomasBury ThomasBury added the enhancement New feature or request label Mar 9, 2024
Copy link
Owner

@ThomasBury ThomasBury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

precomputing the ABS is a good call 👍. Thanks for catching that!

@ThomasBury ThomasBury merged commit e627f3d into ThomasBury:main Mar 9, 2024
@ThomasBury
Copy link
Owner

Changes will be available in the upcoming minor release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants