View source: R/trans_feature_generation.R
| feature_generation | R Documentation |
Create new features from existing columns using named expressions.
feature_generation(...)
... |
named expressions that compute new features |
returns an object of class feature_generation
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)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.