makeDummyFeaturesWrapper: Fuse learner with dummy feature creator.

View source: R/DummyFeaturesWrapper.R

makeDummyFeaturesWrapperR Documentation

Fuse learner with dummy feature creator.

Description

Fuses a base learner with the dummy feature creator (see createDummyFeatures). Returns a learner which can be used like any other learner.

Usage

makeDummyFeaturesWrapper(learner, method = "1-of-n", cols = NULL)

Arguments

learner

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

method

(character(1))
Available are:

"1-of-n":

For n factor levels there will be n dummy variables.

"reference":

There will be n-1 dummy variables leaving out the first factor level of each variable.

Default is ā€œ1-of-nā€.

cols

(character)
Columns to create dummy features for. Default is to use all columns.

Value

Learner.

See Also

Other wrapper: makeBaggingWrapper(), makeClassificationViaRegressionWrapper(), makeConstantClassWrapper(), makeCostSensClassifWrapper(), makeCostSensRegrWrapper(), makeDownsampleWrapper(), makeExtractFDAFeatsWrapper(), makeFeatSelWrapper(), makeFilterWrapper(), makeImputeWrapper(), makeMulticlassWrapper(), makeMultilabelBinaryRelevanceWrapper(), makeMultilabelClassifierChainsWrapper(), makeMultilabelDBRWrapper(), makeMultilabelNestedStackingWrapper(), makeMultilabelStackingWrapper(), makeOverBaggingWrapper(), makePreprocWrapperCaret(), makePreprocWrapper(), makeRemoveConstantFeaturesWrapper(), makeSMOTEWrapper(), makeTuneWrapper(), makeUndersampleWrapper(), makeWeightedClassesWrapper()


berndbischl/mlr documentation built on Aug. 15, 2024, 4:20 p.m.