tests/testthat/test_plot.R

context("plot individual_variable_effects")

test_that("test plotting parameters", {
  skip_if_no_shap()
  expect_is(plot(ive_rf_reg), "gg")
  expect_is(plot(ive_rf_reg, show_predcited = FALSE, show_attributions = FALSE), "gg")
})

Try the shapper package in your browser

Any scripts or data that you put into this service are public.

shapper documentation built on Aug. 28, 2020, 9:08 a.m.