You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dylan-kelahealth, The error looks to me correctly raised. Your model would have been trained on integer features so not sure how it would interpret non-integer values if dice-ml decides to generate floating point values. Correct me if you think that is not accurate.
@gaugup If this is a correctly raised error, then the error message might benefit from revision (e.g. type checking). Several other issues have posted about the same error message. This is also not clarified in the documentation.
This was confusing because "value outside the dataset" implies outside the defined range. The range contains the query value unless the range is specified as integers only, which it is not.
[problem]
Value errors for out of interval values are thrown when data are of different type
[illustrative example]
The following error is produced when the values of the intervals are
int
, and the query values are some precision offloat
However, the feature value can be within the range of the interval and still throw this error.
After casting the feature ranges to the same type as their query values, this error goes away.
[proposed fix]
Intervals should not be required to have the same type as the query values
should accept value,
as within the range of the interval.
The text was updated successfully, but these errors were encountered: