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 Jan. 16, 2023, 1:06 a.m.