Skip to content

Avoid redundant calls to .abs in association matrix#45

Merged
ThomasBury merged 1 commit into
ThomasBury:mainfrom
jlopezpena:main
Mar 9, 2024
Merged

Avoid redundant calls to .abs in association matrix#45
ThomasBury merged 1 commit into
ThomasBury:mainfrom
jlopezpena:main

Conversation

@jlopezpena
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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