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

None object return #108

Open
kontogiorgos opened this issue Jul 22, 2024 · 3 comments
Open

None object return #108

kontogiorgos opened this issue Jul 22, 2024 · 3 comments

Comments

@kontogiorgos
Copy link

Just today, I noticed that the explanation dict for counterfactuals sometimes returns None. It does include the query object, but the counterfactual object is None. Any idea why may that happen? Thank you.

@yangwenz
Copy link
Collaborator

The lib wasn't changed recently. Is it because the input params were different?

@kontogiorgos
Copy link
Author

Thanks for the quick response. I am not sure where the problem comes from I have the two example inputs of same size (17). It works on the first one but not the second one.

[1]
0.17068946 0 0.733116195 0 0 0.109212438 0.845610604 0 0 0.766995499 1.049617662 0.240121093 0.007876287 0 0 0 1.678424503

[2]
0.428164316 0.322897315 0.847202692 0 0 0 0.865536872 0.005060287 0 0.065755479 2.294708587 0.244758731 0.605453063 0 0 0 1.496855159

@yangwenz
Copy link
Collaborator

One possible reason is that for the second one, the algorithm cannot find proper couterfactual examples by the default parameters. You may change the setups for the counterfactual algorithms, e.g., https://github.com/salesforce/OmniXAI/blob/main/omnixai/explainers/tabular/counterfactual/mace/retrieval.py

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

2 participants