{
  "_id": "6a10168aacfb0bcc41c84849",
  "Package": "counterfactuals",
  "Type": "Package",
  "Title": "Counterfactual Explanations",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(\"Susanne\", \"Dandl\", email = \"dandls.datascience@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0003-4324-4163\")),\nperson(\"Andreas\", \"Hofheinz\", email = \"andreas.hofheinz@outlook.com\", role = c(\"aut\")),\nperson(\"Martin\", \"Binder\", email = \"developer.mb706@mb706.com\", role = c(\"ctb\")),\nperson(\"Giuseppe\",\"Casalicchio\", email = \"giuseppe.casalicchio@stat.uni-muenchen.de\", role = c(\"ctb\"))\n)",
  "Maintainer": "Susanne Dandl <dandls.datascience@gmail.com>",
  "Description": "Modular and unified R6-based interface for counterfactual\nexplanation methods. The following methods are currently\nimplemented: Burghmans et al. (2022)\n<doi:10.48550/arXiv.2104.07411>, Dandl et al. (2020)\n<doi:10.1007/978-3-030-58112-1_31> and Wexler et al. (2019)\n<doi:10.1109/TVCG.2019.2934619>. Optional extensions allow\nthese methods to be applied to a variety of models and use\ncases. Once generated, the counterfactuals can be analyzed and\nvisualized by provided functionalities. The package is\ndescribed in detail in Dandl et al. (2025)\n<doi:10.18637/jss.v115.i09>.",
  "URL": "https://github.com/dandls/counterfactuals",
  "BugReports": "https://github.com/dandls/counterfactuals/issues",
  "License": "LGPL-3",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "R.rsp",
  "Roxygen": "list(markdown = TRUE, r6 = TRUE)",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "make",
  "Repository": "https://dandls.r-universe.dev",
  "Date/Publication": "2026-01-14 07:49:17 UTC",
  "RemoteUrl": "https://github.com/dandls/counterfactuals",
  "RemoteRef": "HEAD",
  "RemoteSha": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-14 08:19:44 UTC",
    "User": "root"
  },
  "Author": "Susanne Dandl [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-4324-4163>),\nAndreas Hofheinz [aut],\nMartin Binder [ctb],\nGiuseppe Casalicchio [ctb]",
  "MD5sum": "86065c889fef31e42df24633af2c35af",
  "_user": "dandls",
  "_type": "src",
  "_file": "counterfactuals_1.0.0.tar.gz",
  "_fileid": "629490faa3e173c6d7d0c0aab170fe113e7a6646fc525c55656891c1281853c7",
  "_filesize": 702726,
  "_sha256": "629490faa3e173c6d7d0c0aab170fe113e7a6646fc525c55656891c1281853c7",
  "_created": "2026-05-14T08:19:44.000Z",
  "_published": "2026-05-22T08:40:41.991Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77345407853,
      "time": 214,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6990248627"
    },
    {
      "job": 77345407846,
      "time": 207,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6990247172"
    },
    {
      "job": 77345407962,
      "time": 250,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7010890415"
    },
    {
      "job": 77345407793,
      "time": 278,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6990248103"
    },
    {
      "job": 77345407249,
      "time": 272,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6990193098"
    },
    {
      "job": 77345407319,
      "time": 160,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156369001"
    },
    {
      "job": 77345407707,
      "time": 130,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6990227363"
    },
    {
      "job": 77345407941,
      "time": 123,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6990225568"
    },
    {
      "job": 77345407982,
      "time": 118,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6990224226"
    }
  ],
  "_buildurl": "https://github.com/r-universe/dandls/actions/runs/25849572105",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/dandls/counterfactuals",
  "_commit": {
    "id": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
    "author": "dandls <dandl.susanne@gmail.com>",
    "committer": "dandls <dandl.susanne@gmail.com>",
    "message": "resolve workflow\n",
    "time": 1768376957
  },
  "_maintainer": {
    "name": "Susanne Dandl",
    "email": "dandls.datascience@gmail.com",
    "orcid": "0000-0003-4324-4163"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "StatMatch",
      "role": "Imports"
    },
    {
      "package": "iml",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "paradox",
      "role": "Imports"
    },
    {
      "package": "miesmuschel",
      "role": "Imports"
    },
    {
      "package": "bbotk",
      "role": "Imports"
    },
    {
      "package": "gower",
      "role": "Suggests"
    },
    {
      "package": "randomForest",
      "role": "Suggests"
    },
    {
      "package": "GGally",
      "role": "Suggests"
    },
    {
      "package": "trtf",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "R.rsp",
      "role": "Suggests"
    },
    {
      "package": "cowplot",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "keras",
      "role": "Suggests"
    },
    {
      "package": "rchallenge",
      "role": "Suggests"
    },
    {
      "package": "gamlss.data",
      "role": "Suggests"
    },
    {
      "package": "partykit",
      "role": "Suggests"
    },
    {
      "package": "mlt",
      "role": "Suggests"
    },
    {
      "package": "variables",
      "role": "Suggests"
    },
    {
      "package": "basefun",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rpart",
      "role": "Suggests"
    },
    {
      "package": "mlr3",
      "role": "Suggests"
    },
    {
      "package": "mlr3learners",
      "role": "Suggests"
    },
    {
      "package": "mlr3pipelines",
      "role": "Suggests"
    },
    {
      "package": "tidymodels",
      "role": "Suggests"
    },
    {
      "package": "caret",
      "role": "Suggests"
    },
    {
      "package": "mlr",
      "role": "Suggests"
    }
  ],
  "_owner": "dandls",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-03",
      "n": 6
    }
  ],
  "_tags": [],
  "_topics": [
    "interpretable-machine-learning",
    "local-explanations",
    "model-agnostic-explanations"
  ],
  "_stars": 28,
  "_contributors": [
    {
      "user": "andreash0",
      "count": 277,
      "uuid": 33908442
    },
    {
      "user": "dandls",
      "count": 186,
      "uuid": 25373845
    },
    {
      "user": "mb706",
      "count": 8,
      "uuid": 15801081
    },
    {
      "user": "rifatmehreen",
      "count": 1,
      "uuid": 21968577
    },
    {
      "user": "giuseppec",
      "count": 1,
      "uuid": 4238748
    }
  ],
  "_userbio": {
    "uuid": 25373845,
    "type": "user",
    "name": "Susanne Dandl"
  },
  "_downloads": {
    "count": 628,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/counterfactuals"
  },
  "_devurl": "https://github.com/dandls/counterfactuals",
  "_searchresults": 33,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/counterfactuals.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/dandls/counterfactuals",
  "_realowner": "dandls",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2023-02-13"
    },
    {
      "version": "0.1.2",
      "date": "2023-03-23"
    },
    {
      "version": "0.1.4",
      "date": "2024-05-14"
    },
    {
      "version": "0.1.5",
      "date": "2024-10-15"
    },
    {
      "version": "0.1.6",
      "date": "2024-10-17"
    },
    {
      "version": "1.0.0",
      "date": "2026-01-14"
    }
  ],
  "_exports": [
    "CounterfactualMethodClassif",
    "CounterfactualMethodRegr",
    "MOCClassif",
    "MOCRegr",
    "NICEClassif",
    "NICERegr",
    "RandomSearchClassif",
    "RandomSearchRegr",
    "WhatIfClassif",
    "WhatIfRegr"
  ],
  "_help": [
    {
      "page": "CounterfactualMethod",
      "title": "Base class for Counterfactual Explanation Methods",
      "topics": [
        "CounterfactualMethod"
      ]
    },
    {
      "page": "CounterfactualMethodClassif",
      "title": "Base class for Counterfactual Explanation Methods for Classification Tasks",
      "concept": [
        "find_counterfactuals"
      ],
      "topics": [
        "CounterfactualMethodClassif"
      ]
    },
    {
      "page": "CounterfactualMethodRegr",
      "title": "Base class for Counterfactual Explanation Methods for Regression Tasks",
      "concept": [
        "find_counterfactuals"
      ],
      "topics": [
        "CounterfactualMethodRegr"
      ]
    },
    {
      "page": "Counterfactuals",
      "title": "Counterfactuals Class",
      "concept": [
        "evaluate",
        "evaluate_set",
        "get_freq_of_feature_changes",
        "plot_freq_of_feature_changes",
        "plot_parallel",
        "plot_surface",
        "revert_subset_to_valid"
      ],
      "topics": [
        "Counterfactuals"
      ]
    },
    {
      "page": "dist_to_interval",
      "title": "Computes the (absolute, pairwise) distance between the vector elements and an interval",
      "topics": [
        "dist_to_interval"
      ]
    },
    {
      "page": "eval_distance",
      "title": "Evaluates a distance function and checks for correct output format",
      "topics": [
        "eval_distance"
      ]
    },
    {
      "page": "make_param_set",
      "title": "Creates a ParamSet for the features of a data.table.",
      "topics": [
        "make_param_set"
      ]
    },
    {
      "page": "MOCClassif",
      "title": "MOC (Multi-Objective Counterfactual Explanations) for Classification Tasks",
      "concept": [
        "get_dominated_hv",
        "plot_search",
        "plot_statistics"
      ],
      "topics": [
        "MOCClassif"
      ]
    },
    {
      "page": "MOCRegr",
      "title": "MOC (Multi-Objective Counterfactual Explanations) for Regression Tasks",
      "concept": [
        "get_dominated_hv",
        "plot_search",
        "plot_statistics"
      ],
      "topics": [
        "MOCRegr"
      ]
    },
    {
      "page": "NICEClassif",
      "title": "NICE (Nearest Instance Counterfactual Explanations) for Classification Tasks",
      "topics": [
        "NICEClassif"
      ]
    },
    {
      "page": "NICERegr",
      "title": "NICE (Nearest Instance Counterfactual Explanations) for Regression Tasks",
      "topics": [
        "NICERegr"
      ]
    },
    {
      "page": "RandomSearchClassif",
      "title": "Random Search for Classification Tasks",
      "topics": [
        "RandomSearchClassif"
      ]
    },
    {
      "page": "RandomSearchRegr",
      "title": "Random Search for Regression Tasks",
      "topics": [
        "RandomSearchRegr"
      ]
    },
    {
      "page": "smallest_n_indices",
      "title": "Returns the indices of the n smallest elements in a vector",
      "topics": [
        "smallest_n_indices"
      ]
    },
    {
      "page": "WhatIfClassif",
      "title": "WhatIf for Classification Tasks",
      "topics": [
        "WhatIfClassif"
      ]
    },
    {
      "page": "WhatIfRegr",
      "title": "WhatIf for Regression Tasks",
      "topics": [
        "WhatIfRegr"
      ]
    }
  ],
  "_readme": "https://github.com/dandls/counterfactuals/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "bbotk",
    "checkmate",
    "cli",
    "codetools",
    "cpp11",
    "data.table",
    "DBI",
    "digest",
    "dplyr",
    "farver",
    "Formula",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "globals",
    "glue",
    "gtable",
    "iml",
    "isoband",
    "labeling",
    "lattice",
    "lgr",
    "lifecycle",
    "listenv",
    "lpSolve",
    "magrittr",
    "Matrix",
    "matrixStats",
    "Metrics",
    "miesmuschel",
    "minqa",
    "mitools",
    "mlr3misc",
    "numDeriv",
    "paradox",
    "parallelly",
    "pillar",
    "pkgconfig",
    "proxy",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "S7",
    "scales",
    "StatMatch",
    "survey",
    "survival",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "introduction.html.asis",
      "filename": "introduction.html",
      "title": "counterfactuals R package",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2023-02-08 18:52:06",
      "modified": "2024-10-17 09:42:42",
      "commits": 3
    },
    {
      "source": "how-to-add-new-cf-methods.html.asis",
      "filename": "how-to-add-new-cf-methods.html",
      "title": "How to extend the package",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2023-02-08 18:52:06",
      "modified": "2024-10-17 09:42:42",
      "commits": 3
    },
    {
      "source": "other_models.html.asis",
      "filename": "other_models.html",
      "title": "Other types of models",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2023-02-08 18:52:06",
      "modified": "2024-10-17 09:42:42",
      "commits": 3
    }
  ],
  "_score": 6.74382322160375,
  "_indexed": true,
  "_nocasepkg": "counterfactuals",
  "_universes": [
    "dandls"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-14T08:22:53.000Z",
      "distro": "noble",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "35c621514c13667924844079b6932c3c68c777cd209bd5d7eb0146b8d0182df2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/25849572105"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-14T08:22:49.000Z",
      "distro": "noble",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "537e03fff2447644b26fbd123c5455ef8f82c9d9f5fd5cae1da3cad76ad000e8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/25849572105"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-15T05:45:29.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "5d145b48c920516fc447f3c733295154aa6c127dd008e739e8cae368e29c6d0e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/25849572105"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-14T08:22:29.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "e61e3e97686dd1730a57e82666fc9868a16a6e0d2bcb3bd1e67d9b45bf48f9cd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/25849572105"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-14T08:21:22.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "3f17473d9e71a7efa30adfa0b13c2348082d5f9abec7381667bb823e0b544677",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/25849572105"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-14T08:21:15.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "8ae19ba624a902a602c4458ff875e92e500487e3afd643626f3486392337e2bb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/25849572105"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-14T08:21:10.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "867106d0c971ecfb7b152bb4ee84f345308115f519149b2d3a90af74203efb2a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/25849572105"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-05-22T08:40:26.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "f2eb4786fcd1555fff87554c21c37fffd89d9639f3b8d3b900d8ffaca6c982f8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/25849572105"
    }
  ]
}