R/trainModels.R

Defines functions trainModels

trainModels = function(learner, tasks, control) {
  # if (control$multifid)
  #   learner = makeMultiFidWrapper(learner, control)

  models = vector("list", length(tasks))
  secs = 0

  for (i in seq_along(models)) {
    secs = secs + measureTime({
      models[[i]] = train(learner, tasks[[i]])
    })
  }

  list(models = models, train.time = secs)
}

Try the mlrMBO package in your browser

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

mlrMBO documentation built on June 25, 2018, 9:04 a.m.