counterfactuals: Counterfactual Explanations

Modular and unified R6-based interface for counterfactual explanation methods. The following methods are currently implemented: Burghmans et al. (2022) <doi:10.48550/arXiv.2104.07411>, Dandl et al. (2020) <doi:10.1007/978-3-030-58112-1_31> and Wexler et al. (2019) <doi:10.1109/TVCG.2019.2934619>. Optional extensions allow these methods to be applied to a variety of models and use cases. Once generated, the counterfactuals can be analyzed and visualized by provided functionalities.

Version: 0.1.4
Depends: R (≥ 3.5.0)
Imports: R6, checkmate, StatMatch, iml, data.table, paradox, miesmuschel, bbotk
Suggests: gower, randomForest, GGally, trtf, testthat, MASS, R.rsp, cowplot, covr, ggplot2, keras, rchallenge,, partykit, mlt, variables, basefun, rmarkdown, rpart, mlr3, mlr3learners, mlr3pipelines, tidymodels, caret, mlr
Published: 2024-05-14
DOI: 10.32614/CRAN.package.counterfactuals
Author: Susanne Dandl ORCID iD [aut, cre], Andreas Hofheinz [aut], Martin Binder [ctb], Giuseppe Casalicchio [ctb]
Maintainer: Susanne Dandl <dandls.datascience at>
License: LGPL-3
NeedsCompilation: no
Citation: counterfactuals citation info
Materials: README NEWS
CRAN checks: counterfactuals results


Reference manual: counterfactuals.pdf
Vignettes: How to extend the package
counterfactuals R package
Other types of models


Package source: counterfactuals_0.1.4.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): counterfactuals_0.1.4.tgz, r-oldrel (arm64): counterfactuals_0.1.4.tgz, r-release (x86_64): counterfactuals_0.1.4.tgz, r-oldrel (x86_64): counterfactuals_0.1.4.tgz
Old sources: counterfactuals archive


Please use the canonical form to link to this page.