R/tuneRandom.R

Defines functions tuneRandom

tuneRandom = function(learner, task, resampling, measures, par.set, control, opt.path, show.info, resample.fun) {
  vals = sampleValues(n = control$extra.args$maxit, par = par.set, trafo = FALSE)
  evalOptimizationStatesTune(learner, task, resampling, measures, par.set, control, opt.path,
    show.info, vals, dobs = seq_along(vals), eols = NA_integer_, remove.nas = TRUE, resample.fun)
  makeTuneResultFromOptPath(learner, par.set, measures, control, opt.path)
}
guillermozbta/s2 documentation built on Jan. 2, 2018, 12:25 a.m.