revdep/checks.noindex/MachineShop/old/MachineShop.Rcheck/tests/testthat/test-ML_RandomForestModel.R

model <- "RandomForestModel"

context(model)

test_that("model fitting", {
  skip_if_not(TEST_MODEL_FITTING)
  with_parallel({
    expect_output(test_model_binary(model))
    expect_output(test_model_factor(model))
    expect_output(test_model_numeric(model))
    expect_output(test_model_ordered(model))
    expect_error(test_model_Surv(model))
  })
})
gbm-developers/gbm documentation built on Feb. 16, 2024, 6:13 p.m.