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

fix sparse multiclass local feature contributions and add test #3382

Merged

Conversation

imatiach-msft
Copy link
Contributor

PR to fix sparse multiclass local feature contributions and add test.

This is a follow-up to this previous PR from me that was merged but had a bug in the multiclass case:
#3000

This PR addresses bugs for multiclass case for both CSR and CSC matrixes:
1.) For CSR case, the indices array was getting overwritten for each matrix, so I added a 'matrix_offsets' array
2.) For CSC case, we were not incrementing col_ptr_index and matrix_start_indices was filled in invalid way
3.) Also, I added optimization to CSC case by parallelizing the code by matrix

The PR also adds a python test for multiclass sparse feature contributions case, which is similar to the test in the previous PR.

This bug was discovered in the https://github.com/interpretml/interpret-community repository when updating to lightgbm 3.0 in the sparse multiclass tests.

@imatiach-msft imatiach-msft force-pushed the ilmat/fix-sparse-contrib-indices branch from 5c19857 to 16b0f90 Compare September 11, 2020 17:16
@StrikerRUS StrikerRUS added the fix label Sep 11, 2020
@StrikerRUS StrikerRUS merged commit eff287e into microsoft:master Sep 21, 2020
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants