tests/testthat/test_predicts.R

context("Check predict.explainer() function")

test_that("Output format",{
  expect_is(model_prediction(explainer_classif_ranger, titanic_imputed), "numeric")
  expect_is(predict(explainer_classif_ranger, titanic_imputed), "numeric")
})

Try the DALEX package in your browser

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

DALEX documentation built on July 28, 2021, 5:09 p.m.