Gets the class weight parameter of a learner.
Arguments
- learner
(Learner |
character(1))
The learner. If you pass a string the learner will be created via makeLearner.- lrn.id
(character)
Only used forBaseEnsembles. It is possible that multiple learners in a base ensemble have a class weight param. Specify the learner from which the class weight should be extracted.
Value
LearnerParam: A numeric parameter object, containing the class weight parameter of the given learner.
See also
Other learner:
LearnerProperties,
getHyperPars(),
getLearnerId(),
getLearnerNote(),
getLearnerPackages(),
getLearnerParVals(),
getLearnerParamSet(),
getLearnerPredictType(),
getLearnerShortName(),
getLearnerType(),
getParamSet(),
helpLearnerParam(),
helpLearner(),
makeLearners(),
makeLearner(),
removeHyperPars(),
setHyperPars(),
setId(),
setLearnerId(),
setPredictThreshold(),
setPredictType()
