View source: R/ts_aug_awaresmooth.R
| ts_aug_awaresmooth | R Documentation |
Recency-aware augmentation that also progressively smooths noise before applying the weighting, producing cleaner augmented samples.
ts_aug_awaresmooth(factor = 1)
factor |
Numeric factor controlling the recency weighting. |
A ts_aug_awaresmooth object.
Q. Wen et al. (2021). Time Series Data Augmentation for Deep Learning: A Survey. IJCAI Workshop on Time Series.
# Recency-aware augmentation with progressive smoothing
# Load package and example dataset
library(daltoolbox)
data(tsd)
# Convert to 10-lag sliding windows and preview
xw <- ts_data(tsd$y, 10)
ts_head(xw)
# Apply awareness+smooth augmentation and inspect result
augment <- ts_aug_awaresmooth()
augment <- fit(augment, xw)
xa <- transform(augment, xw)
ts_head(xa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.