mlsanityData to 7 Oct 2026

counterfactuals: An R Package for Counterfactual Explanation Methods

arXiv 2304.06569 ↗First posted 13 Apr 2023stat.ML cs.LG stat.COcited by 2

Not on the map. Why?

Abstract (arXiv)

Counterfactual explanation methods provide information on how feature values of individual observations must be changed to obtain a desired prediction. Despite the increasing amount of proposed methods in research, only a few implementations exist whose interfaces and requirements vary widely. In this work, we introduce the counterfactuals R package, which provides a modular and unified R6-based interface for counterfactual explanation methods. We implemented three existing counterfactual explanation methods and propose some optional methodological extensions to generalize these methods to different scenarios and to make them more comparable. We explain the structure and workflow of the package using real use cases and show how to integrate additional counterfactual explanation methods into the package. In addition, we compared the implemented methods for a variety of models and datasets with regard to the quality of their counterfactual explanations and their runtime behavior.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 22 of its 76 references that are in the map. First posted on arXiv 13 Apr 2023.

Builds on

22 of 76 references.

References · 22

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2013Intriguing properties of neural networkscited by 5,114
  3. 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
  4. 2014OpenML: networked science in machine learningcited by 523
  5. 2020AutoGluon-Tabular: Robust and Accurate AutoML for Structured Datacited by 368
  6. 2018Actionable Recourse in Linear Classificationcited by 327
  7. 2020Algorithmic Recourse: from Counterfactual Explanations to Interventionscited by 250
  8. 2019The What-If Tool: Interactive Probing of Machine Learning Modelscited by 207
  9. 2019Model-Agnostic Counterfactual Explanations for Consequential Decisionscited by 204
  10. 2020Counterfactual Explanations and Algorithmic Recourses for Machine Learning: A Reviewcited by 174
  11. 2018Local Rule-Based Explanations of Black Box Decision Systemscited by 165
  12. 2020Multi-Objective Counterfactual Explanationscited by 157
10 more
  1. 2019Preserving Causal Constraints in Counterfactual Explanations for Machine Learning Classifierscited by 143
  2. 2021CARLA: A Python Library to Benchmark Algorithmic Recourse and Counterfactual Explanation Algorithmscited by 85
  3. 2017Interpretable Predictions of Tree-based Ensembles via Actionable Feature Tweakingcited by 76
  4. 2021NICE: An Algorithm for Nearest Instance Counterfactual Explanationscited by 62
  5. 2020The Intriguing Relation Between Counterfactual Explanations and Adversarial Examplescited by 44
  6. 2021GeCo: Quality Counterfactual Explanations in Real Timecited by 32
  7. 2018DALEX: explainers for complex predictive modelscited by 28
  8. 2022Improvement-Focused Causal Recourse (ICR)cited by 20
  9. 2021A Framework and Benchmarking Study for Counterfactual Generating Methods on Tabular Datacited by 19
  10. 2021Counterfactual Explanations for Oblique Decision Trees: Exact, Efficient Algorithmscited by 14

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 1.

2 papers.