Skip to content

Commit

Permalink
verbose=FALSE for treeshap tests
Browse files Browse the repository at this point in the history
  • Loading branch information
krzyzinskim committed Nov 6, 2023
1 parent c820fe9 commit 2b82685
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/testthat/test-model_survshap.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ test_that("global survshap explanations with treeshap work for ranger", {
new_observation = new_obs,
y_true = survival::Surv(veteran$time[1:40], veteran$status[1:40]),
aggregation_method = "mean_absolute",
calculation_method = "treeshap"
calculation_method = "treeshap",
verbose = FALSE
)
plot(ranger_global_survshap_tree)

Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-predict_parts.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ test_that("local survshap explanations with treeshap work for ranger", {
new_obs,
y_true = c(veteran$time[2], veteran$status[2]),
aggregation_method = "mean_absolute",
calculation_method = "treeshap"
calculation_method = "treeshap",
verbose = FALSE
)
plot(parts_ranger)

Expand Down

0 comments on commit 2b82685

Please sign in to comment.