Gets the class weight parameter of a learner.

getClassWeightParam(learner, = NULL)



(Learner | character(1))
The learner. If you pass a string the learner will be created via makeLearner.

Only used for BaseEnsembles. 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.


numeric LearnerParam: A numeric parameter object, containing the class weight parameter of the given learner.

See also