Description Usage Arguments Value See Also Examples
For a classification learner the predict.type
can be set
to “prob” to predict probabilities and the maximum
value selects the label. The threshold used to assign the label can later be changed using the
setThreshold
function.
To see all possible properties of a learner, go to: LearnerProperties
.
1 2 3 |
cl |
[ |
id |
[ |
predict.type |
[ |
predict.threshold |
[ |
fix.factors.prediction |
[ |
... |
[any] |
par.vals |
[ |
config |
[ |
[Learner
].
Other learner: LearnerProperties
,
getClassWeightParam
,
getHyperPars
, getLearnerId
,
getLearnerPackages
,
getLearnerParVals
,
getLearnerParamSet
,
getLearnerPredictType
,
getLearnerShortName
,
getLearnerType
, getParamSet
,
helpLearnerParam
,
helpLearner
, makeLearners
,
removeHyperPars
,
setHyperPars
, setId
,
setLearnerId
,
setPredictThreshold
,
setPredictType
1 2 3 4 | makeLearner("classif.rpart")
makeLearner("classif.lda", predict.type = "prob")
lrn = makeLearner("classif.lda", method = "t", nu = 10)
print(lrn$par.vals)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.