R/ChainModel_operators.R

getLeafModel = function(model) {
  if (inherits(model, "BaseWrapperModel"))
    return(getLeafModel(model$learner.model$next.model))
  return(model)
}
Najah-lshanableh/R-data-mining2 documentation built on May 6, 2019, 10:11 a.m.