stock-transformer/a0_config.py

8 lines
239 B
Python
Raw Permalink Normal View History

2024-08-05 14:15:06 +08:00
import torch
USE_CUDA = torch.cuda.is_available()
device = torch.device('cuda:0' if USE_CUDA else 'cpu')
input_window = 7 # number of input time steps
output_window = 1 # number of prediction steps (equals to one)
batch_size = 100