dandls / counterfactuals

counterfactuals: An R package for Counterfactual Explanation Methods
https://dandls.github.io/counterfactuals/
GNU Lesser General Public License v3.0
21 stars 4 forks source link

$find_counterfactual should accept target in x_interest #2

Closed andreash0 closed 3 years ago

andreash0 commented 3 years ago

This should work.

wi_regr$find_counterfactuals(x_interest = mtcars[1L, ...)

Currently it needs to be

wi_regr$find_counterfactuals(x_interest = mtcars[1L, -which(names(mtcars) == "mpg")], ...)