You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
The code has been tested in the following environment:
Package
Version
Python
3.8
PyTorch
2.5.1
CUDA
12.1
PyTorch Geometric
2.6.1
TensorFlow
2.13.1
NumPy
1.24.3
Install
# Create and activate the environmentcondacreate-ntimemarpython=3.10-ycondaactivatetimemar# Install dependenciespipinstall-rrequirements.txt
Stage 1: Train VQ-VAE
The trained model checkpoints will be saved in a directory such aslog/vq_stock/version_0/checkpoints.
pythontrain_vqvae.py
Stage 2: Train Autoregressive (AR) Model
Set the path to the trained VQ-VAE model in theload_dir field of the configuration fileconfigs/train_var_stock.yaml.
pythontrain_ar.py
Stage 3: Manually Generate Data
Specify the path to the trained VQ-VAE model in thevar_path: load_dir field ofconfigs/train_sample_stock.yaml. The generated data will be saved in a directory likeoutput/stock/generated_samples/24/.
pythonsample.py
Stage 4: Evaluation
Evaluate the quality of the generated data.
Pass the path to the generated data as the second argument to theeval() function ineval.py.