File: ChainModel_operators.R

package info (click to toggle)
r-cran-mlr 2.13-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,760 kB
  • sloc: ansic: 65; sh: 13; makefile: 2
file content (5 lines) | stat: -rw-r--r-- 151 bytes parent folder | download
1
2
3
4
5
getLeafModel = function(model) {
  if (inherits(model, "BaseWrapperModel"))
    return(getLeafModel(model$learner.model$next.model))
  return(model)
}