R/trainModels.R

Defines functions trainModels

trainModels = function(learner, tasks, 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 July 4, 2022, 9:05 a.m.