powered by
Small helper function that can save some typing when creating mutiple learner objects. Calls makeLearner multiple times internally.
makeLearners(cls, ids = NULL, type = NULL, ...)
(character) Classes of learners.
(character) Id strings. Must be unique. Default is cls.
cls
(character(1)) Shortcut to prepend type string to cls so one can set cls = "rpart". Default is NULL, i.e., this is not used.
character(1)
cls = "rpart"
NULL
(any) Optional named (hyper)parameters. Alternatively these can be given using the par.vals argument.
par.vals
[named list of [Learner]). Named by ids.
ids
[named list of [Learner]: R:named
Other learner: LearnerProperties, getClassWeightParam, getHyperPars, getLearnerId, getLearnerPackages, getLearnerParVals, getLearnerParamSet, getLearnerPredictType, getLearnerShortName, getLearnerType, getParamSet, helpLearnerParam, helpLearner, makeLearner, removeHyperPars, setHyperPars, setId, setLearnerId, setPredictThreshold, setPredictType
LearnerProperties
getClassWeightParam
getHyperPars
getLearnerId
getLearnerPackages
getLearnerParVals
getLearnerParamSet
getLearnerPredictType
getLearnerShortName
getLearnerType
getParamSet
helpLearnerParam
helpLearner
makeLearner
removeHyperPars
setHyperPars
setId
setLearnerId
setPredictThreshold
setPredictType
# NOT RUN { makeLearners(c("rpart", "lda"), type = "classif", predict.type = "prob") # }
Run the code above in your browser using DataLab