Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

decisionintelligence/TimeMAR

Repository files navigation

muti-scale

Stage 0: Environment Setup

The code has been tested in the following environment:

PackageVersion
Python3.8
PyTorch2.5.1
CUDA12.1
PyTorch Geometric2.6.1
TensorFlow2.13.1
NumPy1.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.

# Inside eval.pyeval("stock","output/stock/generated_samples/24/20xx-xx-xx_xx-xx-xx/manual_generate.npy")pythoneval.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2026 Movatter.jp