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 Aug. 28, 2018, 5:04 p.m.