cure-lab / SCINet

The GitHub repository for the paper: “Time Series is a Special Sequence: Forecasting with Sample Convolution and Interaction“. (NeurIPS 2022)
Apache License 2.0
617 stars 127 forks source link

使用自建資料集碰到的問題 #50

Open thisisfruit opened 2 years ago

thisisfruit commented 2 years ago

您好:

欲將自建資料集使用在 SCINet 上,共有21個維度,每天共有6筆資料,預計以前7天資料(共7x6=42筆),預測後1天資料(共1x6=6筆)

在訓練/驗證/測試集的切分,將最後30天資料(共30*6=180筆)作為測試集,驗證集資料選定100筆,剩下作為訓練資料集 image

使用指令如下: python run_ETTh.py --data custom_dataset --features M --seq_len 42 --label_len 6 --pred_len 6 --hidden-size 4 --stacks 1 --levels 1 --lr 3e-3 --batch_size 8 --dropout 0.5 --save True

問題1: ground truth 跟 模型產出 true-scales.npy 的內容對不起來

問題2: 預期測試集長度為180,與模型結果(168, 6, 21)不符

問題3: 嘗試不進行 scale,使用原始數據,將 etth_data_loader.py 內 class Dataset_Pred(Dataset)中的 scale 由 True 改為 False image 結果無法執行,錯誤資訊:TypeError: expected np.ndarray (got float)

請問能怎麼進行調整呢? 謝謝您!