bgreenwell / fastshap

Fast approximate Shapley values in R
https://bgreenwell.github.io/fastshap/
115 stars 18 forks source link
explainable-ai explainable-ml interpretable-machine-learning shapley shapley-values variable-importance xai

fastshap

CRAN
status R-CMD-check Codecov test
coverage Lifecycle:
experimental R-CMD-check

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

# 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")