更新pip, STID配置

This commit is contained in:
czzhangheng 2025-11-24 09:42:33 +08:00
parent 59fb75cd3c
commit 88daa53dd5
4 changed files with 143 additions and 1 deletions

8
.vscode/launch.json vendored
View File

@ -60,6 +60,14 @@
"console": "integratedTerminal", "console": "integratedTerminal",
"args": "--config ./config/STID/NYCBike_Outflow.yaml" "args": "--config ./config/STID/NYCBike_Outflow.yaml"
}, },
{
"name": "STID-SolarEnergy",
"type": "debugpy",
"request": "launch",
"program": "run.py",
"console": "integratedTerminal",
"args": "--config ./config/STID/SolarEnergy.yaml"
},
{ {
"name": "REPST-BJTaxi-InFlow", "name": "REPST-BJTaxi-InFlow",
"type": "debugpy", "type": "debugpy",

66
config/STID/AirQuality.yaml Executable file
View File

@ -0,0 +1,66 @@
basic:
dataset: "AirQuality"
mode: "train"
device: "cuda:0"
model: "STID"
seed: 2023
data:
num_nodes: 35
lag: 24
horizon: 24
val_ratio: 0.2
test_ratio: 0.2
tod: False
normalizer: std
column_wise: False
default_graph: True
add_time_in_day: True
add_day_in_week: True
steps_per_day: 48
days_per_week: 7
input_dim: 1
output_dim: 1
batch_size: 64
model:
input_dim: 3
output_dim: 1
history: 24
horizon: 24
num_nodes: 35
input_len: 24
embed_dim: 32
output_len: 24
num_layer: 3
if_node: True
node_dim: 32
if_T_i_D: True
if_D_i_W: True
temp_dim_tid: 32
temp_dim_diw: 32
time_of_day_size: 288
day_of_week_size: 7
batch_size: 64
train:
loss_func: mae
batch_size: 64
epochs: 100
lr_init: 0.002
weight_decay: 0.0001
lr_decay: False
lr_decay_rate: 0.3
lr_decay_step: "1,50,80"
early_stop: True
early_stop_patience: 15
grad_norm: False
max_grad_norm: 5
real_value: True
debug: true
output_dim: 1
mae_thresh: null
mape_thresh: 0.001
log_step: 200
plot: False

67
config/STID/SolarEnergy.yaml Executable file
View File

@ -0,0 +1,67 @@
basic:
dataset: "SolarEnergy"
mode: "train"
device: "cuda:0"
model: "STID"
seed: 2023
data:
num_nodes: 137
lag: 24
horizon: 24
val_ratio: 0.2
test_ratio: 0.2
tod: False
normalizer: std
column_wise: False
default_graph: True
add_time_in_day: True
add_day_in_week: True
steps_per_day: 48
days_per_week: 7
input_dim: 1
output_dim: 1
batch_size: 64
model:
input_dim: 3
output_dim: 1
history: 24
horizon: 24
num_nodes: 137
input_len: 24
embed_dim: 32
output_len: 24
num_layer: 3
if_node: True
node_dim: 32
if_T_i_D: True
if_D_i_W: True
temp_dim_tid: 32
temp_dim_diw: 32
time_of_day_size: 288
day_of_week_size: 7
batch_size: 64
train:
loss_func: mae
seed: 1
batch_size: 64
epochs: 100
lr_init: 0.002
weight_decay: 0.0001
lr_decay: False
lr_decay_rate: 0.3
lr_decay_step: "1,50,80"
early_stop: True
early_stop_patience: 15
grad_norm: False
max_grad_norm: 5
real_value: True
debug: true
output_dim: 1
mae_thresh: null
mape_thresh: 0.001
log_step: 200
plot: False

View File

@ -12,4 +12,5 @@ notebook
torchcde torchcde
einops einops
transformers transformers
py7zr py7zr
requests