Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix_new_shapr_PR' into fix_new_s…
Browse files Browse the repository at this point in the history
…hapr_PR
  • Loading branch information
martinju committed Nov 15, 2024
2 parents c30b2f1 + e46bd04 commit c7b692d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions vignettes/basic_use.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ library(shapviz)
library(shapr)

fit <- lm(Sepal.Length ~ ., data = iris)
explanation <- shapr::explain(model = fit,
x_train = iris[-1],
x_explain = iris[-1],
approach = "ctree",
phi0 = mean(iris$Sepal.Length)
explanation <- shapr::explain(
model = fit,
x_train = iris[-1],
x_explain = iris[-1],
approach = "ctree",
phi0 = mean(iris$Sepal.Length)
)

shp <- shapviz(explanation)
Expand Down

0 comments on commit c7b692d

Please sign in to comment.