R/ChainModel_operators.R

getLeafModel = function(model) {
  if (inherits(model, "BaseWrapperModel"))
    return(getLeafModel(model$learner.model$next.model))
  return(model)
}
shuodata/mlr-master documentation built on May 20, 2019, 3:33 p.m.