-
Notifications
You must be signed in to change notification settings - Fork 187
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
Feature ranges #284
Comments
@PaoloFantine there are no parameters like 'continuous_features', 'instance', 'model', 'backend' in the |
``> @PaoloFantine there are no parameters like 'continuous_features', 'instance', 'model', 'backend' in the That function is a wrapper I use from within a class. My basd for not checking.
where I think you can deduce the parameters from my previous comment. The issue is the same: I get counterfactuals outside the |
We should be respecting the range. If you could share a sample notebook and dataset, it will be possible for us to dig into this issue. Regards, |
apart from the ranges for the continuous variables, how can I set the range for categorical variables? for example I have a categorical variable that contains four categories (A, B, C, D) and I only want the counterfactuals to vary to |
@tonyabracadabra, You can do something like this below:-
That should be a signal to dice to use only categories 'A', 'B' and 'C' to generate counterfactuals. Hope this helps. P.S. Since this question is not related to the original question, we will really appreciate if you opened a new issue for these queries. |
I am using the drug consumption dataset for a multiclass classification and trying to enforce some permitted ranges like:
however, I get counterfactuals with values well outside those ranges. I wonder whether this is a bug or, in case there are no available counterfactuals within those ranges, they are somehow overidden?
The text was updated successfully, but these errors were encountered: