tests/testthat/test_base_resample_b632plus.R

context("resample_b632+")

test_that("b632+", {
  res = makeResampleDesc("Bootstrap", iters = 3, predict = "both")
  m = setAggregation(mmce, b632plus)
  r = resample(makeLearner("classif.lda"), multiclass.task, res, measures = m)
  x = r$aggr[["mmce.b632plus"]]
  expect_true(is.numeric(x) & length(x) == 1 && !is.na(x))
})
Najah-lshanableh/R-data-mining2 documentation built on May 6, 2019, 10:11 a.m.