Skip to content

Commit de43d75

Browse files
committed
More natural examples in readme
1 parent 56a8ad1 commit de43d75

16 files changed

+9694
-5814
lines changed

R/permshap.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#' Permutation SHAP
22
#'
3-
#' Exact permutation SHAP values with respect to a background dataset.
4-
#' The function is currently limited to maximum 14 features.
3+
#' Exact permutation SHAP algorithm with respect to a background dataset,
4+
#' see Strumbelj and Kononenko. The function works for up to 14 features.
55
#'
66
#' @inheritParams kernelshap
77
#' @returns
@@ -16,6 +16,9 @@
1616
#' (currently `TRUE`).
1717
#' - `txt`: Summary text.
1818
#' - `predictions`: \eqn{(n \times K)} matrix with predictions of `X`.
19+
#' @references
20+
#' 1. Erik Strumbelj and Igor Kononenko. Explaining prediction models and individual
21+
#' predictions with feature contributions. Knowledge and Information Systems 41, 2014.
1922
#' @export
2023
#' @examples
2124
#' # MODEL ONE: Linear regression

0 commit comments

Comments
 (0)