autoDummy: Automatically replace factors with dummy features.

Description Usage Arguments

View source: R/autoDummy.R

Description

Checks a task to see if it contains factors or ordered factors, then checks a learner to see if it is unable to handle factors. If both are true, returns the learner wrapped with makeDummyFeaturesWrapper which perfors one-hot encoding, i.e. creates a separate column for each factor level with a 1 indicating that observation contained the factor level in question, and a zero indicating otherwise.

Usage

1
autoDummy(wl, task, ...)

Arguments

wl

(WrappedLearner) An ezmlr WrappedLearner object.

task

(Task) An mlr Task.

...

Additional arguments to pass to makeDummyFeaturesWrapper


Prometheus77/ezmlr documentation built on May 17, 2019, 6:34 p.m.