create_transformer.RdCreate a transformer definition
create_transformer(
name,
type,
input_type = "numeric",
output_type = "numeric",
fit_func = NULL,
apply_func,
name_generator,
allow_replace = FALSE
)Transformer name
Type: "unary", "binary", "supervised_unary"
Type of input: "numeric" or "categorical"
Type of output: "numeric" or "categorical"
function(data, input_cols, target_col = NULL) returning state
function(data, input_cols, state = NULL) returning new column vector
function(input_cols) returning output column name
Logical. Whether column sampling allows replacement.