Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 821 Bytes

File metadata and controls

15 lines (10 loc) · 821 Bytes

Time Sequence Prediction

This is a toy example for beginners to start with. It helps learn both PyTorch and time sequence prediction. Two LSTMCell units are used in this example to learn some sine wave signals starting at different phases. After learning the sine waves, the network tries to predict the signal values in the future. The results are shown in the picture below.

Usage

python generate_sine_wave.py
python train.py

Result

The initial signal and the predicted results are shown in the image. We first give some initial signals (full line). The network will subsequently give some predicted results (dash line). It can be concluded that the network can generate new sine waves. image