Example
Sinusoidal Synthetic Sequence Data Example
A common example of generating synthetic sequence data uses time steps. At each step , the observed value is computed as , where is noise drawn from a standard normal distribution and scaled to have a standard deviation of 0.2. The sinusoidal signal provides a smooth, periodic ground truth, while the additive noise makes the prediction nontrivial. To construct training data assuming a -th order Markov condition with , the sequence is converted into overlapping windows. This yields total examples. The first 600 examples, which cover approximately one full period of the sine function, are used for training, and the remainder are reserved for evaluation.
0
1
Updated 2026-06-30
Tags
D2L
Dive into Deep Learning @ D2L