Computes per-series summary features from the target variable via tsfeatures::tsfeatures() and broadcasts them
as constant columns to every row of the corresponding series. For an unkeyed task the features are broadcast to
every row; for a keyed task each key contributes one feature vector.
Features are cached in the state at train time and reused at predict time. Predicting on a key that was not seen during training is an error.
Parameters
The parameters are the parameters inherited from mlr3pipelines::PipeOpTaskPreproc, as well as:
features::character()
Function names from thetsfeaturesnamespace that return numeric feature vectors. Defaultc("frequency", "stl_features", "entropy", "acf_features").scale::logical(1)
IfTRUE, scale each series to mean 0 and sd 1 before feature extraction. DefaultTRUE.trim::logical(1)
IfTRUE, trim values outside±trim_amountbefore feature extraction. DefaultFALSE.trim_amount::numeric(1)
Trimming threshold. Default0.1.parallel::logical(1)
IfTRUE, compute features in parallel via afuture::plan(). DefaultFALSE.multiprocess::function
Function from thefuturepackage used whenparallel = TRUE. Defaultfuture::multisession().na.action::function
Missing-value handler. Defaultstats::na.pass().
Super classes
mlr3pipelines::PipeOp -> mlr3pipelines::PipeOpTaskPreproc -> PipeOpFcstTsfeats
Methods
Method new()
Initializes a new instance of this Class.
Usage
PipeOpFcstTsfeats$new(id = "fcst.tsfeats", param_vals = list())