You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,26 +15,33 @@ unit tests against Python's "shap".
15
15
### API
16
16
17
17
- The argument `feature_names` can now also be used with matrix input ([#166](https://github.com/ModelOriented/kernelshap/pull/166)).
18
+
-`kernelshap()` and `permshap()` have received a `seed = NULL` argument ([#170](https://github.com/ModelOriented/kernelshap/pull/170)).
19
+
- Parallel mode: If missing packages or globals have to be specified, this now has to be done through `parallel_args = list(packages = ..., globals = ...)`
20
+
instead of `parallel_args = list(.packages = ..., .globals = ...)`, see section on parallelism below.
21
+
The list is passed to `[foreach::foreach(.options.future = ...)]`.
18
22
19
23
### Speed and memory improvements
20
24
21
25
-`permshap()` and `kernelshap()` require about 10% less memory ([#166](https://github.com/ModelOriented/kernelshap/pull/166)).
22
26
-`permshap()` and `kernelshap()` are faster for data.frame input,
23
27
and slightly slower for matrix input ([#166](https://github.com/ModelOriented/kernelshap/pull/166)).
24
28
- Additionally, `permshap(, exact = TRUE)` is faster by pre-calculating more
25
-
elements used across rows [#165](https://github.com/ModelOriented/kernelshap/pull/165)
29
+
elements used across rows ([#165](https://github.com/ModelOriented/kernelshap/pull/165)).
26
30
27
-
### Documentation
28
-
29
-
-`kernelshap()` and `permshap()` currently yield a warning on random seed handling in
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,15 +110,17 @@ The {kernelshap} package can deal with almost any situation. We will show some o
110
110
111
111
### Parallel computing
112
112
113
-
Parallel computing for `permshap()` and `kernelshap()` is supported via {foreach}. Note that this does not work for all models.
113
+
Parallel computing for `permshap()` and `kernelshap()` is supported via {doFuture} and {foreach}.
114
+
Note that this does not work for all models.
114
115
115
-
On Windows, sometimes not all packages or global objects are passed to the parallel sessions. Often, this can be fixed via `parallel_args`, see this example:
116
+
On Windows, sometimes not all packages or global objects are passed to the parallel sessions.
117
+
Often, this can be fixed via `parallel_args` using the arguments "packages" and "globals" passed
118
+
to `foreach(.options.future = ...)`, see this example:
116
119
117
120
```r
118
121
library(doFuture)
119
122
library(mgcv)
120
123
121
-
registerDoFuture()
122
124
plan(multisession, workers=4) # Windows
123
125
# plan(multicore, workers = 4) # Linux, macOS, Solaris
124
126
@@ -127,7 +129,7 @@ fit <- gam(log_price ~ s(log_carat) + clarity * color + cut, data = diamonds)
0 commit comments