encodeMean: Mean encoding for categorical features

Description Usage Arguments Value Author(s)

View source: R/encodeMean.R

Description

Uses the target feature to calculate the mean for each level of a categorical feature and encodes it

Usage

1
encodeMean(x, y, catFeats, autoCode = TRUE)

Arguments

x

[data.frame | Required] Data.frame containing categorical features

y

[character | Required] Target feature name

catFeats

[character vector | Required] Character vector of categorical features

autoCode

[logical | Optional] Should code be generated when running the function

Value

List containing data.frame with encoded features as well as code when autoCode is TRUE

Author(s)

Xander Horn


XanderHorn/autoML documentation built on Aug. 5, 2020, 11:45 a.m.