Skip to content

Conversation

valeriy42
Copy link
Contributor

Backport to #1005

This PR aims to improve the computation efficiency of the feature importance computation. To this end, it introduces continuous memory array to store elements from the split path, pre-reserved at the beginning. Furthermore, I split scale values away from fractionOnes, fractionZeros, and splitIndex to improve cache efficiency. Altogether, I could reduce the computation time by half.

I will look into improving SHAP algorithms by introducing suitable heuristics in a follow-up PR.
@valeriy42
Copy link
Contributor Author

retest

@valeriy42 valeriy42 merged commit 9194b33 into elastic:7.x Feb 20, 2020
@valeriy42 valeriy42 deleted the backport-pr1005 branch February 20, 2020 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant