feature_generation: Feature generation

View source: R/trans_feature_generation.R

feature_generationR Documentation

Feature generation

Description

Create new features from existing columns using named expressions.

Usage

feature_generation(...)

Arguments

...

named expressions that compute new features

Value

returns an object of class feature_generation

References

Kuhn, M. and Johnson, K. (2019). Feature Engineering and Selection: A Practical Approach for Predictive Models. CRC Press. Han, J., Kamber, M. and Pei, J. (2011). Data Mining: Concepts and Techniques (3rd ed.). Morgan Kaufmann. (Attribute construction)

Examples

data(iris)
gen <- feature_generation(
 Sepal.Area = Sepal.Length * Sepal.Width,
 Petal.Area = Petal.Length * Petal.Width,
 Sepal.Ratio = Sepal.Length / Sepal.Width
)
iris_feat <- transform(gen, iris)
head(iris_feat)

daltoolbox documentation built on Nov. 23, 2026, 9:08 a.m.