Learn R Programming

mlr (version 2.10)

LearnerProperties: Query properties of learners.

Description

Properties can be accessed with getLearnerProperties(learner), which returns a character vector. The learner properties are defined as follows:
numerics, factors, ordered
Can numeric, factor or ordered factor features be handled?
missings
Can missing values in features be handled?
weights
Can observations be weighted during fitting?
oneclas, twoclass, multiclass
Only for classif: Can one-class, two-class or multi-class classification problems be handled?
class.weights
Only for classif: Can class weights be handled?
rcens, lcens, icens
Only for surv: Can right, left, or interval censored data be handled?
prob
For classif, cluster, multilabel, surv: Can probabilites be predicted?
se
Only for regr: Can standard errors be predicted?
featimp
For classif, regr, surv: Does the model support extracting information on feature importance?

Usage

getLearnerProperties(learner)

hasLearnerProperties(learner, props)

Arguments

learner
[Learner | character(1)] The learner. If you pass a string the learner will be created via makeLearner.
props
[character] Vector of properties to query.

Value

getLearnerProperties returns a character vector with learner properties. hasLearnerProperties returns a logical vector of the same length as props.

See Also

Other learner: getClassWeightParam, getHyperPars, getLearnerId, getLearnerPackages, getLearnerParVals, getLearnerParamSet, getLearnerPredictType, getLearnerShortName, getLearnerType, getParamSet, makeLearners, makeLearner, removeHyperPars, setHyperPars, setId, setLearnerId, setPredictThreshold, setPredictType