shapr: An R-package for explaining machine learning models with dependence-aware Shapley values
Authors/Creators
Files
10.21105.joss.02027.pdf
Files
(479.9 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:5daaed7d12f2353b2ad32250803a3d8f
|
130.2 kB | Preview Download |
|
md5:3320c08b1dfdc38c588270bfea0cee30
|
349.7 kB | Preview Download |
Additional details
Identifiers
Related works
- Describes
- 10.5281/zenodo.3641831 (DOI)
- Is reviewed by
- https://github.com/openjournals/joss-reviews/issues/2027 (URL)
Dates
- Issued
-
February 5, 2019
References
- Sellereite, N., & Jullum, M. (2020). shapr: An R-package for explaining machine learning models with dependence-aware Shapley values (Version 0.1.1) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.3641831
- Explaining individual predictions when features are dependent: More accurate approximations to Shapley values, Aas, Kjersti and Jullum, Martin and Løland, Anders, Arxiv preprint arxiv:1903.10464, 2019
- A unified approach to interpreting model predictions, Lundberg, Scott M and Lee, Su-In, Advances in Neural Information Processing Systems, 4765–4774, 2017
- An efficient explanation of individual classifications using game theory, Štrumbelj, Erik and Kononenko, Igor, Journal of machine learning research, 11, Jan, 1–18, 2010
- Štrumbelj, E., & Kononenko, I. (2013). Explaining prediction models and individual predictions with feature contributions. Knowledge and Information Systems, 41(3), 647–665. https://doi.org/10.1007/s10115-013-0679-x
- Consistent individualized feature attribution for tree ensembles, Lundberg, Scott M and Erion, Gabriel G and Lee, Su-In, Arxiv preprint arxiv:1802.03888, 2018
- Shapley, L. S. (1953). 17. A Value for n-Person Games. In Contributions to the Theory of Games (AM-28), Volume II (pp. 307–318). Princeton University Press. https://doi.org/10.1515/9781400881970-018
- lime: Local Interpretable Model-Agnostic Explanations, Pedersen, Thomas Lin and Benesty, Michaël, 2019, R package version 0.5.1, https://cran.r-project.org/package=lime
- Eddelbuettel, D., & François, R. (2011). Rcpp : Seamless R and C++ Integration. Journal of Statistical Software, 40(8). https://doi.org/10.18637/jss.v040.i08
- R: A language and environment for statistical computing, R Core Team, R foundation for statistical computing, 2019, https://www.r-project.org
- data.table: Extension of 'data.frame', Dowle, Matt and Srinivasan, Arun, 2019, R package version 1.12.2, https://cran.r-project.org/package=data.table
- Lundberg, S. M., Erion, G., Chen, H., DeGrave, A., Prutkin, J. M., Nair, B., Katz, R., Himmelfarb, J., Bansal, N., & Lee, S.-I. (2020). From local explanations to global understanding with explainable AI for trees. Nature Machine Intelligence, 2(1), 56–67. https://doi.org/10.1038/s42256-019-0138-9
- Eddelbuettel, D., & Sanderson, C. (2014). RcppArmadillo: Accelerating R with high-performance C++ linear algebra. Computational Statistics & Data Analysis, 71, 1054–1063. https://doi.org/10.1016/j.csda.2013.02.005
- Wright, M. N., & Ziegler, A. (2017). ranger : A Fast Implementation of Random Forests for High Dimensional Data in C++ and R. Journal of Statistical Software, 77(1). https://doi.org/10.18637/jss.v077.i01
- xgboost: Extreme Gradient Boosting, Chen, Tianqi and He, Tong and Benesty, Michael and Khotilovich, Vadim and Tang, Yuan and Cho, Hyunsu and Chen, Kailong and Mitchell, Rory and Cano, Ignacio and Zhou, Tianyi and Li, Mu and Xie, Junyuan and Lin, Min and Geng, Yifeng and Li, Yutian, 2019, R package version 0.90.0.2, https://cran.r-project.org/package=xgboost
- Generalized Additive Models: An Introduction with R, 2017, Wood, S.N, 2, Chapman and Hall/CRC
Citations
- Svensson, D., Hermansson, E., Nikolaou, N., Sechidis, K., & Lipkovich, I. (2026). Overview and Practical Recommendations on Using Shapley Values for Identifying Predictive Biomarkers via CATE Modeling. Statistics in Medicine, 45(1-2), Article e70375. https://doi.org/10.1002/sim.70375
- Manivannan, D. (2026). A comprehensive analysis of explainable AI-driven machine learning techniques for network intrusion detection systems. High-Confidence Computing, 6(4), Article 100423. https://doi.org/10.1016/j.hcc.2026.100423
- Nguyen, J., Dwyer, D. B., Tagliaferri, S. D., Hartmann, S., Clark, S. R., Scott, I., Wigman, J. T. W., Lin, A., Thompson, A., Gao, C. X., Wood, S. J., Amminger, G. P., Yung, A. R., Koutsouleris, N., Hartmann, J. A., Davey, C. G., Ronald, A., McGorry, P. D., Middeldorp, C. M., … Schmaal, L. (2026). Machine Learning Prediction of First Suicide Attempts in Early Adolescence Among Child Ideators. Journal of the American Academy of Child & Adolescent Psychiatry. https://doi.org/10.1016/j.jaac.2026.07.1245
- Na, S.-I., Kim, J., Kim, S.-Y., Park, J., & Cho, Y.-J. (2026). SimpleMicrobiome: An integrated web-based platform for streamlined microbiome data analysis and visualization. Journal of Microbiology, 64(9), e2606011. https://doi.org/10.71150/jm.2606011
- Dey, A., & Kiran, M. (2025). R-Based Protocols to Predict Synthetic Lethal Interactions in Cancers Using Machine Learning Tools. In Methods in Molecular Biology (pp. 73–85). Springer US. https://doi.org/10.1007/978-1-0716-4690-8_5
- Kropiunig, J., & Sørensen, Ø. (2025). Gaining Brain Insights by Tapping into the Black Box: Linking Structural MRI Features to Age and Cognition using Shapley-Based Interpretation Methods. Neuroinformatics, 23(4). https://doi.org/10.1007/s12021-025-09737-2
- Manivannan, D. (2025). Explainable AI-Enabled Intrusion Detection Systems for Computer Networks. 2025 IEEE 12th International Conference on Cyber Security and Cloud Computing (CSCloud), 1–6. https://doi.org/10.1109/cscloud66326.2025.00053
- Wang, Z., Li, X., Zheng, J., & He, Y. (2025). Unveiling differential adverse event profiles in vaccines via LLM text embeddings and ontology semantic analysis. Journal of Biomedical Semantics, 16(1), Article 10. https://doi.org/10.1186/s13326-025-00331-8
- Olsen, L. H. B., Glad, I. K., Jullum, M., & Aas, K. (2024). A comparative study of methods for estimating model-agnostic Shapley value explanations. Data Mining and Knowledge Discovery, 38(4), 1782–1829. https://doi.org/10.1007/s10618-024-01016-z
- Ryan, S. C., Runkle, J. D., Wertis, L., & Sugg, M. M. (2024). Place-Based Differences in the Association Between Greenspace and Suicide-Related Outcomes Among Young People. Journal of Adolescent Health, 75(2), 305–313. https://doi.org/10.1016/j.jadohealth.2024.03.014
- Rzepa, C., Dabagian, D., Siderius, D. W., Hatch, H. W., Shen, V. K., Mittal, J., & Rangarajan, S. (2024). Elucidating Thermodynamically Driven Structure–Property Relations for Zeolite Adsorption Using Neural Networks. JACS Au, 4(12), 4673–4690. https://doi.org/10.1021/jacsau.4c00429
- Das, R., Kasieczka, G., & Shih, D. (2024). Feature selection with distance correlation. Physical Review D, 109(5). https://doi.org/10.1103/physrevd.109.054009
- de Lara, A., Mieno, T., Luck, J. D., & Puntel, L. A. (2023). Predicting site-specific economic optimal nitrogen rate using machine learning methods and on-farm precision experimentation. Precision Agriculture, 24(5), 1792–1812. https://doi.org/10.1007/s11119-023-10018-8
- Wang, Z., M.Whipp, A., Heinonen-Guzejev, M., Júlvez, J., & Kaprio, J. (2023). Exposome approaches to assessing the association between urban land use environment and depressive symptoms in young adulthood: a FinnTwin12 cohort study [Preprint]. In medRxiv. openRxiv. https://doi.org/10.1101/2023.03.27.23287783
- Johnsen, P. V., Strümke, I., Langaas, M., DeWan, A. T., & Riemer-Sørensen, S. (2023). Inferring feature importance with uncertainties with application to large genotype data. PLOS Computational Biology, 19(3), e1010963. https://doi.org/10.1371/journal.pcbi.1010963
- Trunz, E., Weinmann, M., Merzbach, S., & Klein, R. (2022). Efficient structuring of the latent space for controllable data reconstruction and compression. Graphics and Visual Computing, 7, 200059. https://doi.org/10.1016/j.gvc.2022.200059
- Lee, E.-K., & Cho, H. (2022). PPtreeregViz: Projection Pursuit Regression Tree Visualization [Dataset]. In CRAN: Contributed Packages. The R Foundation. https://doi.org/10.32614/cran.package.pptreeregviz
- Rohmer, J., Thieblemont, R., Le Cozannet, G., Goelzer, H., & Durand, G. (2022). Improving interpretation of sea-level projections through a machine-learning-based local explanation approach. The Cryosphere, 16(11), 4637–4657. https://doi.org/10.5194/tc-16-4637-2022
- Aas, K., Jullum, M., & Løland, A. (2021). Explaining individual predictions when features are dependent: More accurate approximations to Shapley values. Artificial Intelligence, 298, Article 103502. https://doi.org/10.1016/j.artint.2021.103502
- Ebrahimi-Khusfi, Z., Taghizadeh-Mehrjardi, R., Roustaei, F., Ebrahimi-Khusfi, M., Mosavi, A. H., Heung, B., Soleimani-Sardo, M., & Scholten, T. (2021). Determining the contribution of environmental factors in controlling dust pollution during cold and warm months of western Iran using different data mining algorithms and game theory. Ecological Indicators, 132, 108287. https://doi.org/10.1016/j.ecolind.2021.108287
- Fryer, D., Strumke, I., & Nguyen, H. (2021). Shapley Values for Feature Selection: The Good, the Bad, and the Axioms. IEEE Access, 9, 144352–144360. https://doi.org/10.1109/access.2021.3119110
- Aas, K., Nagler, T., Jullum, M., & Løland, A. (2021). Explaining predictive models using Shapley values and non-parametric vine copulas. Dependence Modeling, 9(1), 62–81. https://doi.org/10.1515/demo-2021-0103
- Redelmeier, A., Jullum, M., & Aas, K. (2020). Explaining Predictive Models with Mixed Features Using Shapley Values and Conditional Inference Trees. In Lecture Notes in Computer Science (pp. 117–137). Springer International Publishing. https://doi.org/10.1007/978-3-030-57321-8_7
- Jullum, M., Olsen, L. H. B., Redelmeier, A., Lachmann, J., & Sellereite, N. (2020). shapr: Prediction Explanation with Dependence-Aware Shapley Values [Dataset]. In CRAN: Contributed Packages. The R Foundation. https://doi.org/10.32614/cran.package.shapr