k discrete cosine transform
coefficients with the most variance across the set of time series.
See reconstruct to reconstruct the time series using the
k column to new data (per input column).
step_dct( recipe, ..., role = "predictor", trained = FALSE, k = 4, coefs = NULL, skip = FALSE, id = recipes::rand_id("dct") )
A recipe object. The step will be added to the sequence of operations for this recipe.
One or more selector functions to choose which
variables are affected by the step. See
For model terms created by this step, what analysis role should they be assigned?. By default, the function assumes that the new columns created from the original variables will be used as predictors in a model.
A logical to indicate if the quantities for preprocessing have been estimated.
The number of discrete cosine transform coefficients, tunable.
A list of the length and coefficient indices for each time series passed to the step, created once the step has been trained.
A logical. Should the step be skipped when the
recipe is baked by
A character string that is unique to this step to identify it.