R/OptResult.R

Defines functions makeOptResult

makeOptResult = function(learner, control, x, y, resampling, threshold, opt.path, cl, ...) {
  res = list(
    learner = learner,
    control = control,
    x = x,
    y = y,
    resampling = resampling,
    threshold = threshold,
    opt.path = opt.path
  )
  res = c(res, list(...))
  setClasses(res, c(cl, "OptResult"))
}
berndbischl/mlr documentation built on Jan. 6, 2023, 12:45 p.m.