Skip to content

Commit 865cb61

Browse files
authored
Merge pull request #89 from ModelOriented/latex
Fix Latex math problem with MacOS
2 parents 4571671 + 9b0c6fa commit 865cb61

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: kernelshap
22
Title: Kernel SHAP
3-
Version: 0.3.6
3+
Version: 0.3.7
44
Authors@R: c(
55
person("Michael", "Mayer", , "mayermichael79@gmail.com", role = c("aut", "cre")),
66
person("David", "Watson", , "david.s.watson11@gmail.com", role = "aut"),

NEWS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# kernelshap 0.3.7
2+
3+
## Maintenance
4+
5+
- Fixed problem in Latex math for MacOS.
6+
17
# kernelshap 0.3.6
28

39
## Maintenance

R/kernelshap.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#' Kernel SHAP
22
#'
33
#' Efficient implementation of Kernel SHAP, see Lundberg and Lee (2017), and
4-
#' Covert and Lee (2021).
4+
#' Covert and Lee (2021), abbreviated by CL21.
55
#' For up to \eqn{p=8} features, the resulting Kernel SHAP values are exact regarding
66
#' the selected background data. For larger \eqn{p}, an almost exact hybrid algorithm
77
#' involving iterative sampling is used, see Details.
88
#'
9-
#' Pure iterative Kernel SHAP sampling as in Covert and Lee (2021, abbreviated by "CL21")
9+
#' Pure iterative Kernel SHAP sampling as in Covert and Lee (2021)
1010
#' works by randomly sample \eqn{m} on-off vectors \eqn{z} so that their sum follows the
1111
#' SHAP Kernel weight distribution (normalized to the range \eqn{\{1, \dots, p-1\}}.
1212
#' Based on these vectors, many predictions are formed. Then, Kernel SHAP values are
@@ -91,10 +91,10 @@
9191
#' @param m Even number of on-off vectors sampled during one iteration.
9292
#' The default is \eqn{2p}, except when `hybrid_degree == 0`.
9393
#' Then it is set to \eqn{8p}. Ignored if `exact = TRUE`.
94-
#' @param tol Tolerance determining when to stop. The algorithm keeps iterating until
95-
#' \eqn{\text{max}(\sigma_n)/(\text{max}(\beta_n) - \text{min}(\beta_n)) < \text{tol}},
94+
#' @param tol Tolerance determining when to stop. Following CL21, the algorithm keeps
95+
#' iterating until \eqn{\textrm{max}(\sigma_n)/(\textrm{max}(\beta_n) - \textrm{min}(\beta_n)) < \textrm{tol}},
9696
#' where the \eqn{\beta_n} are the SHAP values of a given observation,
97-
#' and \eqn{\sigma_n} their standard errors, see CL21.
97+
#' and \eqn{\sigma_n} their standard errors.
9898
#' For multidimensional predictions, the criterion must be satisfied for each
9999
#' dimension separately. The stopping criterion uses the fact that standard errors
100100
#' and SHAP values are all on the same scale. Ignored if `exact = TRUE`.

man/kernelshap.Rd

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packaging.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ library(usethis)
1515
use_description(
1616
fields = list(
1717
Title = "Kernel SHAP",
18-
Version = "0.3.6",
18+
Version = "0.3.7",
1919
Description = "Efficient implementation of Kernel SHAP,
2020
see Lundberg and Lee (2017) <https://dl.acm.org/doi/10.5555/3295222.3295230>,
2121
and Covert and Lee (2021) <http://proceedings.mlr.press/v130/covert21a>.

0 commit comments

Comments
 (0)