getClassWeightParam: Get the class weight parameter of a learner.

View source: R/getClassWeightParam.R

getClassWeightParamR Documentation

Get the class weight parameter of a learner.

Description

Gets the class weight parameter of a learner.

Usage

getClassWeightParam(learner, lrn.id = NULL)

Arguments

learner

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

lrn.id

(character)
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.

Value

numeric 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(), helpLearner(), helpLearnerParam(), makeLearner(), makeLearners(), removeHyperPars(), setHyperPars(), setId(), setLearnerId(), setPredictThreshold(), setPredictType()


mlr documentation built on June 22, 2024, 10:51 a.m.