revdep/checks.noindex/mlr/new/mlr.Rcheck/tests/testthat/test_regr_lm.R

context("regr_lm")

test_that("regr_lm", {
  pars = list(regr.formula, data = regr.train)
  m = do.call(lm, pars)
  p = predict(m, newdata = regr.test)

  testSimple("regr.lm", regr.df, regr.target, regr.train.inds, p)
})
gbm-developers/gbm documentation built on July 4, 2024, 6:05 a.m.