tests/testthat/test_mljar_explain.R

# context("explain_mljar")
#
# source("objects_for_tests.R")
#
# test_that("creating explainer", {
#   skip_if_no_mljar()
#   titanic_test <- read.csv(system.file("extdata", "titanic_test.csv", package = "DALEXtra"))
#   load(system.file("extdata", "mljar.RData", package = "DALEXtra"))
#   explainer <- explain_mljar(model, "Project title", data = titanic_test[,1:17], y = titanic_test[,18], verbose = FALSE, precalculate = FALSE)
#
#   expect_is(explainer, "explainer")
#
# })

Try the DALEXtra package in your browser

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

DALEXtra documentation built on Sept. 7, 2020, 5:09 p.m.