computeInteractions: Computes feature interactions

Description Usage Arguments Value Author(s) Examples

View source: R/computeInteractions.R

Description

Computes feature interactions for numerical and integer features. Feature interactions include x1 + x2, x1 - x2, x1 * x2, x1 / x2

Usage

1
computeInteractions(x, numFeats, autoCode = TRUE, progress = FALSE)

Arguments

x

[data.frame | Required] Data.frame containing numeric features to transform

numFeats

[character vector | Required] Character vector of numerical features

autoCode

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

progress

[logical | Optional] Should a progress bar display the progress when running the function

Value

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

Author(s)

Xander Horn

Examples

1
int <- computeInteractions(x = iris, numFeats = names(iris)[1:4])

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