revdep/checks.noindex/mlr3proba/new/mlr3proba.Rcheck/tests/testthat/test_train_predict_score.R

context("resampling")

test_that("train, predict, score", {
  task = tsk("lung")
  learner = lrn("surv.rpart")

  perf = learner$train(task)$predict(task)$score()
  expect_number(perf)
})
gbm-developers/gbm documentation built on Feb. 16, 2024, 6:13 p.m.