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

active sampling strategy #654

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chandan21gupta
Copy link

@chandan21gupta chandan21gupta commented Jan 14, 2022

Having used this library, I encountered some problems, which required frequent edits in the source code. Here I have added three functions :

  1. Generate Samples -> Sometimes we just need perturbed samples for custom explanations. Made a function for that.
  2. Active Sampling Strategy -> Used an active sampling approach where those perturbed samples can be used which the explainable model is least certain about, by comparing the predicted labels with the black box and selecting those perturbed samples which are farthest.
  3. perturbation_predict -> Added a function which given a perturbed (or even a real datapoint), gives the corresponding prediction. This was also raised in issue no. How to obtain regression model prediction using lime explanations? #639.

Note -> These methods have only been implemented for tabular lime. If it gains popularity I shall extend it to other types of explanations as well.

The major change is the sampling approach. Although further experiments are required, this might be ideal for researchers to use, as active learning can significantly reduce number of perturbations. Feedbacks are welcome!

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.

1 participant