Gets the class weight parameter of a learner.

getClassWeightParam(learner)

Arguments

learner

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

Value

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

See also