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

Fixing an NPE in LIMEExplanation.getActiveFeatures() #157

Merged
merged 1 commit into from
Jul 30, 2021

Conversation

Craigacp
Copy link
Member

Description

SparseModels which only had a single feature set (rather than one per output dimension) caused an NPE in LIMEExplanation.toString() and other places which tried to use the output of LIMEExplanation.getActiveFeatures().

Motivation

LIME should work with any SparseTrainer, and the explanations should not throw NPE anywhere.

Noticed when looking at #156.

Copy link
Member

@jhalexand jhalexand left a comment

Choose a reason for hiding this comment

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

Makes sense.

@jhalexand jhalexand merged commit 979c90d into main Jul 30, 2021
@jhalexand jhalexand deleted the lime-explanation-fix branch July 30, 2021 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants