tests/testthat/helper_autoplot.R

# for tsk()
loadNamespace("mlr3")

prepare_autoplot = function(resampling_type, task = NULL, ...) {
  if (is.null(task)) {
    task = test_make_twoclass_task()
  }
  rsp = rsmp(resampling_type, ...)$instantiate(task)

  return(list(rsp = rsp, task = task))
}

Try the mlr3spatiotempcv package in your browser

Any scripts or data that you put into this service are public.

mlr3spatiotempcv documentation built on Oct. 24, 2023, 5:07 p.m.