Other packages > Find by keyword >

treeshap  

Compute SHAP Values for Your Tree-Based Models Using the 'TreeSHAP' Algorithm
View on CRAN: Click here


Download and install treeshap package within the R console
Install from CRAN:
install.packages("treeshap")

Install from Github:
library("remotes")
install_github("cran/treeshap")

Install by package version:
library("remotes")
install_version("treeshap", "0.4.0")



Attach the package and use:
library("treeshap")
Maintained by
Mateusz Krzyzinski
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2023-10-01
Latest Update: 2024-01-22
Description:
An efficient implementation of the 'TreeSHAP' algorithm introduced by Lundberg et al., (2020) <doi:10.1038/s42256-019-0138-9>. It is capable of calculating SHAP (SHapley Additive exPlanations) values for tree-based models in polynomial time.Currently supported models include 'gbm', 'randomForest', 'ranger', 'xgboost', 'lightgbm'.
How to cite:
Mateusz Krzyzinski (2023). treeshap: Compute SHAP Values for Your Tree-Based Models Using the 'TreeSHAP' Algorithm. R package version 0.4.0, https://cran.r-project.org/web/packages/treeshap. Accessed 05 Jun. 2026.
Previous versions and publish date:
0.2.5 (2023-10-01 17:50), 0.3.0 (2023-10-24 18:00), 0.3.1 (2024-01-22 16:20)
Other packages that cited treeshap R package
View treeshap citation profile
Other R packages that treeshap depends, imports, suggests or enhances
Complete documentation for treeshap
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

ibb  
R Wrapper for Istanbul Municipality Open Data Portal
Call wrappers for Istanbul Metropolitan Municipality's Open Data Portal (Turkish: Istanbul B ...
Download / Learn more Package Citations See dependency  
envirem  
Generation of ENVIREM Variables
Generation of bioclimatic rasters that are complementary to the typical 19 bioclim variables. ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
msm  
Multi-State Markov and Hidden Markov Models in Continuous Time
Functions for fitting continuous-time Markov and hidden Markov multi-state models to longitudinal d ...
Download / Learn more Package Citations See dependency  
crossurr  
Cross-Fitting for Doubly Robust Evaluation of High-Dimensional Surrogate Markers
Doubly robust methods for evaluating surrogate markers as outlined in: Agniel D, Hejblum BP, Thiebau ...
Download / Learn more Package Citations See dependency  

27,268

R Packages

233,548

Dependencies

72,590

Author Associations

27,205

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA