diff --git a/articles/basic_use.html b/articles/basic_use.html index 45c9698..205290d 100644 --- a/articles/basic_use.html +++ b/articles/basic_use.html @@ -98,7 +98,7 @@
vignettes/basic_use.Rmd
+ Source: vignettes/basic_use.Rmd
basic_use.Rmd
library(shapviz)
library(treeshap)
-library(ranger)
+library(ranger)
fit <- ranger(
y = iris$Sepal.Width, x = iris[-1], max.depth = 6, num.trees = 100
@@ -333,7 +337,7 @@ DALEX
library(shapviz)
library(DALEX)
-library(ranger)
+library(ranger)
fit <- ranger(Sepal.Length ~ ., data = iris, max.depth = 6, num.trees = 100)
explainer <- DALEX::explain(fit, data = iris[-1], y = iris[, 1], label = "RF")
diff --git a/articles/geographic.html b/articles/geographic.html
index a1995e8..42061cc 100644
--- a/articles/geographic.html
+++ b/articles/geographic.html
@@ -98,7 +98,7 @@
Geographic Components
- Source: vignettes/geographic.Rmd
+ Source: vignettes/geographic.Rmd
geographic.Rmd
diff --git a/articles/multiple_output.html b/articles/multiple_output.html
index 9e835c4..27042d4 100644
--- a/articles/multiple_output.html
+++ b/articles/multiple_output.html
@@ -98,7 +98,7 @@
Multiple ‘shapviz’ objects
- Source: vignettes/multiple_output.Rmd
+ Source: vignettes/multiple_output.Rmd
multiple_output.Rmd
@@ -206,7 +206,7 @@ Or for a random forest with {ker
library(kernelshap)
library(ggplot2)
library(patchwork)
-library(ranger)
+library(ranger)
# Model
fit <- ranger(Species ~ ., data = iris, num.trees = 100, probability = TRUE, seed = 1)
diff --git a/articles/tidymodels.html b/articles/tidymodels.html
index 556aff1..738d455 100644
--- a/articles/tidymodels.html
+++ b/articles/tidymodels.html
@@ -98,7 +98,7 @@
Tidymodels
- Source: vignettes/tidymodels.Rmd
+ Source: vignettes/tidymodels.Rmd
tidymodels.Rmd
diff --git a/authors.html b/authors.html
index 72e5c18..d3aa090 100644
--- a/authors.html
+++ b/authors.html
@@ -87,7 +87,7 @@ Authors and Citation
diff --git a/news/index.html b/news/index.html
index 9cac543..479a9cf 100644
--- a/news/index.html
+++ b/news/index.html
@@ -71,7 +71,7 @@
diff --git a/pkgdown.yml b/pkgdown.yml
index 32634a0..6465159 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -6,4 +6,4 @@ articles:
geographic: geographic.html
multiple_output: multiple_output.html
tidymodels: tidymodels.html
-last_built: 2024-10-11T11:20Z
+last_built: 2024-11-16T07:29Z
diff --git a/reference/c.shapviz.html b/reference/c.shapviz.html
index ab67193..27928df 100644
--- a/reference/c.shapviz.html
+++ b/reference/c.shapviz.html
@@ -72,7 +72,7 @@
diff --git a/reference/collapse_shap.html b/reference/collapse_shap.html
index 857c8df..14db626 100644
--- a/reference/collapse_shap.html
+++ b/reference/collapse_shap.html
@@ -74,7 +74,7 @@
diff --git a/reference/dim.shapviz.html b/reference/dim.shapviz.html
index 28694eb..601a1b6 100644
--- a/reference/dim.shapviz.html
+++ b/reference/dim.shapviz.html
@@ -71,7 +71,7 @@
diff --git a/reference/dimnames-set-.shapviz.html b/reference/dimnames-set-.shapviz.html
index 20303e0..36ede34 100644
--- a/reference/dimnames-set-.shapviz.html
+++ b/reference/dimnames-set-.shapviz.html
@@ -71,7 +71,7 @@
Dimnames (Replacement Method) of "shapviz" Object
- Source: R/methods.R
+ Source: R/methods.R
dimnames-set-.shapviz.Rd
diff --git a/reference/dimnames.shapviz.html b/reference/dimnames.shapviz.html
index 5276fbd..70f1415 100644
--- a/reference/dimnames.shapviz.html
+++ b/reference/dimnames.shapviz.html
@@ -72,7 +72,7 @@
diff --git a/reference/extractors.html b/reference/extractors.html
index 5e081b6..eece587 100644
--- a/reference/extractors.html
+++ b/reference/extractors.html
@@ -72,7 +72,7 @@
diff --git a/reference/format_max.html b/reference/format_max.html
index a703e0e..e978e04 100644
--- a/reference/format_max.html
+++ b/reference/format_max.html
@@ -73,7 +73,7 @@
diff --git a/reference/is.mshapviz.html b/reference/is.mshapviz.html
index a1f34f9..a12a7ef 100644
--- a/reference/is.mshapviz.html
+++ b/reference/is.mshapviz.html
@@ -71,7 +71,7 @@
diff --git a/reference/is.shapviz.html b/reference/is.shapviz.html
index 17731c0..848788f 100644
--- a/reference/is.shapviz.html
+++ b/reference/is.shapviz.html
@@ -71,7 +71,7 @@
diff --git a/reference/miami.html b/reference/miami.html
index 508f775..44f8fd9 100644
--- a/reference/miami.html
+++ b/reference/miami.html
@@ -76,7 +76,7 @@
diff --git a/reference/mshapviz.html b/reference/mshapviz.html
index b107864..d0cac18 100644
--- a/reference/mshapviz.html
+++ b/reference/mshapviz.html
@@ -72,7 +72,7 @@
diff --git a/reference/plus-.shapviz.html b/reference/plus-.shapviz.html
index a183ba2..862b1d4 100644
--- a/reference/plus-.shapviz.html
+++ b/reference/plus-.shapviz.html
@@ -71,7 +71,7 @@
diff --git a/reference/potential_interactions.html b/reference/potential_interactions.html
index 36feee7..7fc2c3d 100644
--- a/reference/potential_interactions.html
+++ b/reference/potential_interactions.html
@@ -72,7 +72,7 @@
Interaction Strength
- Source: R/potential_interactions.R
+ Source: R/potential_interactions.R
potential_interactions.Rd
diff --git a/reference/print.mshapviz.html b/reference/print.mshapviz.html
index 8ea3477..95e37d3 100644
--- a/reference/print.mshapviz.html
+++ b/reference/print.mshapviz.html
@@ -71,7 +71,7 @@
diff --git a/reference/print.shapviz.html b/reference/print.shapviz.html
index e1b0c32..800a8d0 100644
--- a/reference/print.shapviz.html
+++ b/reference/print.shapviz.html
@@ -71,7 +71,7 @@
diff --git a/reference/rbind.shapviz.html b/reference/rbind.shapviz.html
index 7c4a6d1..8efd8b9 100644
--- a/reference/rbind.shapviz.html
+++ b/reference/rbind.shapviz.html
@@ -71,7 +71,7 @@
Rowbinds Multiple "shapviz" or "mshapviz" Objects
- Source: R/methods.R
+ Source: R/methods.R
rbind.shapviz.Rd
diff --git a/reference/shapviz-package.html b/reference/shapviz-package.html
index 38f4e6d..e8fe5ce 100644
--- a/reference/shapviz-package.html
+++ b/reference/shapviz-package.html
@@ -72,7 +72,7 @@
shapviz: SHAP Visualizations
- Source: R/shapviz-package.R
+ Source: R/shapviz-package.R
shapviz-package.Rd
diff --git a/reference/shapviz.html b/reference/shapviz.html
index c462208..18513ff 100644
--- a/reference/shapviz.html
+++ b/reference/shapviz.html
@@ -88,7 +88,7 @@
@@ -146,7 +146,12 @@ Initialize "shapviz" Object
shapviz(object, ...)
# S3 method for class 'shapr'
-shapviz(object, X = object[["x_test"]], collapse = NULL, ...)
+shapviz(
+ object,
+ X = as.data.frame(object$internal$data$x_explain),
+ collapse = NULL,
+ ...
+)
# S3 method for class 'kernelshap'
shapviz(object, X = object[["X"]], which_class = NULL, collapse = NULL, ...)
diff --git a/reference/split.shapviz.html b/reference/split.shapviz.html
index 67ba308..7104dc5 100644
--- a/reference/split.shapviz.html
+++ b/reference/split.shapviz.html
@@ -71,7 +71,7 @@
diff --git a/reference/sub-.shapviz.html b/reference/sub-.shapviz.html
index d3916a9..47c7bde 100644
--- a/reference/sub-.shapviz.html
+++ b/reference/sub-.shapviz.html
@@ -72,7 +72,7 @@
diff --git a/reference/summary.shapviz.html b/reference/summary.shapviz.html
index 0cdb2e4..2d62643 100644
--- a/reference/summary.shapviz.html
+++ b/reference/summary.shapviz.html
@@ -71,7 +71,7 @@
diff --git a/reference/sv_dependence.html b/reference/sv_dependence.html
index 26fa50c..603dd1c 100644
--- a/reference/sv_dependence.html
+++ b/reference/sv_dependence.html
@@ -75,7 +75,7 @@
diff --git a/reference/sv_dependence2D.html b/reference/sv_dependence2D.html
index 966342f..7204ba1 100644
--- a/reference/sv_dependence2D.html
+++ b/reference/sv_dependence2D.html
@@ -77,7 +77,7 @@
2D SHAP Dependence Plot
- Source: R/sv_dependence2D.R
+ Source: R/sv_dependence2D.R
sv_dependence2D.Rd
diff --git a/reference/sv_force.html b/reference/sv_force.html
index 567f288..fe7458b 100644
--- a/reference/sv_force.html
+++ b/reference/sv_force.html
@@ -72,7 +72,7 @@
diff --git a/reference/sv_importance.html b/reference/sv_importance.html
index eeea7f6..af27b91 100644
--- a/reference/sv_importance.html
+++ b/reference/sv_importance.html
@@ -73,7 +73,7 @@
diff --git a/reference/sv_interaction.html b/reference/sv_interaction.html
index be083bb..09b198c 100644
--- a/reference/sv_interaction.html
+++ b/reference/sv_interaction.html
@@ -75,7 +75,7 @@
diff --git a/reference/sv_waterfall.html b/reference/sv_waterfall.html
index ade0bc1..62eb890 100644
--- a/reference/sv_waterfall.html
+++ b/reference/sv_waterfall.html
@@ -72,7 +72,7 @@