ts_aug_shrink {tspredit}R Documentation

Augmentation by shrink

Description

Time series data augmentation is a technique used to increase the size and diversity of a time series dataset by creating new instances of the original data through transformations or modifications. The goal is to improve the performance of machine learning models trained on time series data by reducing overfitting and improving generalization. stretch does data augmentation by decreasing the volatility of the time series.

Usage

ts_aug_shrink(scale_factor = 0.8)

Arguments

scale_factor

for shrink

Value

a ts_aug_shrink object.

Examples

library(daltoolbox)
data(sin_data)

#convert to sliding windows
xw <- ts_data(sin_data$y, 10)

#data augmentation using flip
augment <- ts_aug_shrink()
augment <- fit(augment, xw)
xa <- transform(augment, xw)
ts_head(xa)

[Package tspredit version 1.0.767 Index]