Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
102 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

counterfactuals: An R Package for Counterfactual Explanation Methods (2304.06569v2)

Published 13 Apr 2023 in stat.ML, cs.LG, and stat.CO

Abstract: 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.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (5)
  1. Susanne Dandl (12 papers)
  2. Andreas Hofheinz (1 paper)
  3. Martin Binder (8 papers)
  4. Bernd Bischl (136 papers)
  5. Giuseppe Casalicchio (34 papers)
Citations (2)