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

Distances derivation, explain_instance() method in Tabular LIME #743

Open
SamiRawash opened this issue Apr 23, 2024 · 0 comments
Open

Distances derivation, explain_instance() method in Tabular LIME #743

SamiRawash opened this issue Apr 23, 2024 · 0 comments

Comments

@SamiRawash
Copy link

Hi,

I have a question regarding the explain_instance() method in the LimeTabularExplainer class.
When using the LIME formula, we should compute the kernel using the distances between the points in the "real" space, not between their interpretable representation (where the points are in {0,1}^(number of features)), right?

The __data_inverse() method in the class returns the matrices data (interpretable representation) and inverse (real representation). In explain_instance(), however, we compute the distances using the rescaled data matrix, not the rescaled inverse matrix. Why is this the correct thing to do? What am I missing?

Thanks!

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

No branches or pull requests

1 participant