trans_pipeline: Transform pipeline

View source: R/trans_pipeline.R

trans_pipelineR Documentation

Transform pipeline

Description

A daltoolbox::dal_transform() that chains a sequence of transforms. fit() fits each step on the output of the previous one, and transform() applies the fitted steps in order. It lets a model take its preprocessing as a configurable list of transforms instead of a fixed one-hot-plus-normalization.

Usage

trans_pipeline(steps)

Arguments

steps

A list of dal_transform objects (unfitted prototypes), applied in order.

Value

A trans_pipeline object.

Examples

library(daltoolbox)
pipe <- trans_pipeline(list(one_hot(), zscore()))
pipe <- fit(pipe, iris)
head(transform(pipe, iris))

heimdall documentation built on Dec. 2, 2026, 5:08 p.m.