R/ChainModel_operators.R

Defines functions getLeafModel

getLeafModel = function(model) {
  if (inherits(model, "BaseWrapperModel")) {
    return(getLeafModel(model$learner.model$next.model))
  }
  return(model)
}

Try the mlr package in your browser

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

mlr documentation built on Sept. 29, 2022, 5:05 p.m.