makeCostSensRegrWrapper

0th

Percentile

Wraps a regression learner for use in cost-sensitive learning.

Creates a wrapper, which can be used like any other learner object. Models can easily be accessed via getLearnerModel. For each class in the task, an individual regression model is fitted for the costs of that class. During prediction, the class with the lowest predicted costs is selected.

Usage
makeCostSensRegrWrapper(learner)
Arguments
learner
[Learner | character(1)] The regression learner. If you pass a string the learner will be created via makeLearner.
Value

[Learner].

See Also

Other costsens: makeClassifTask, makeCostSensClassifWrapper, makeCostSensWeightedPairsWrapper Other wrapper: makeBaggingWrapper, makeConstantClassWrapper, makeCostSensClassifWrapper, makeDownsampleWrapper, makeFeatSelWrapper, makeFilterWrapper, makeImputeWrapper, makeMulticlassWrapper, makeMultilabelBinaryRelevanceWrapper, makeMultilabelClassifierChainsWrapper, makeMultilabelDBRWrapper, makeMultilabelNestedStackingWrapper, makeMultilabelStackingWrapper, makeOverBaggingWrapper, makePreprocWrapperCaret, makePreprocWrapper, makeRemoveConstantFeaturesWrapper, makeSMOTEWrapper, makeTuneWrapper, makeUndersampleWrapper, makeWeightedClassesWrapper

Aliases
  • makeCostSensRegrWrapper
  • CostSensRegrWrapper
  • CostSensRegrModel
Documentation reproduced from package mlr, version 2.10, License: BSD_2_clause + file LICENSE

Community examples

Looks like there are no examples yet.