https://github.com/bgreenwell/fastshap
Fast approximate Shapley values in R
https://github.com/bgreenwell/fastshap
explainable-ai explainable-ml interpretable-machine-learning shapley shapley-values variable-importance xai
Last synced: 12 days ago
JSON representation
Fast approximate Shapley values in R
- Host: GitHub
- URL: https://github.com/bgreenwell/fastshap
- Owner: bgreenwell
- Created: 2019-07-17T14:20:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T21:48:53.000Z (about 1 year ago)
- Last Synced: 2025-03-31T04:06:39.877Z (19 days ago)
- Topics: explainable-ai, explainable-ml, interpretable-machine-learning, shapley, shapley-values, variable-importance, xai
- Language: R
- Homepage: https://bgreenwell.github.io/fastshap/
- Size: 99.4 MB
- Stars: 119
- Watchers: 3
- Forks: 18
- Open Issues: 12
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
- AwesomeResponsibleAI - fastshap
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
fig.align = "center",
out.width = "100%",
message = FALSE,
warning = FALSE
)
```
# fastshap[](https://CRAN.R-project.org/package=fastshap)
[](https://github.com/bgreenwell/fastshap/actions)
[](https://codecov.io/gh/bgreenwell/fastshap?branch=master)
[](https://www.tidyverse.org/lifecycle/#experimental)
[](https://github.com/bgreenwell/fastshap/actions/workflows/R-CMD-check.yaml)The goal of **fastshap** is to provide an efficient and speedy approach (at least relative to other implementations) for computing approximate Shapley values, which help explain the predictions from any machine learning model.

## Installation
``` r
# Install the latest stable version from CRAN:
install.packages("fastshap")# Install the latest development version from GitHub:
if (!requireNamespace("remotes")) {
install.packages("remotes")
}
remotes::install_github("bgreenwell/fastshap")
```