feat: implement dynamic threshold scheduling for GraphMixer

This commit is contained in:
gameloader
2025-09-12 17:02:42 +08:00
parent 6a1f9d30f3
commit 172328a4e6
4 changed files with 105 additions and 41 deletions

View File

@ -2,45 +2,6 @@
model_name=xPatch_SparseChannel
# ETTm1 dataset
for pred_len in 96 192 336 720
do
python -u run.py \
--task_name long_term_forecast \
--is_training 1 \
--root_path ./dataset/ETT-small/ \
--data_path ETTm1.csv \
--model_id ETTm1_$pred_len'_'$pred_len \
--model $model_name \
--data ETTm1 \
--features M \
--seq_len 96 \
--label_len 48 \
--pred_len $pred_len \
--e_layers 2 \
--d_layers 1 \
--enc_in 7 \
--c_out 7 \
--d_model 128 \
--lradj 'sigmoid' \
--d_ff 256 \
--n_heads 16 \
--patch_len 16 \
--stride 8 \
--k_graph 5 \
--dropout 0.1 \
--revin 1 \
--des 'Exp' \
--itr 1 \
--season_encoder 'Transformer' \
--thr_graph 0.6 \
--symmetric_graph 1 \
--degree_rescale 'none' \
--gate_temperature 0.6667 \
--tau_attn 1.0 \
--season_l0_lambda 0.0000
done
# Weather dataset
for pred_len in 96 192 336 720
do
@ -78,7 +39,11 @@ python -u run.py \
--degree_rescale 'none' \
--gate_temperature 0.6667 \
--tau_attn 1.0 \
--season_l0_lambda 0.0000
--season_l0_lambda 0.0000 \
--thr_graph_min 0.1 \
--thr_graph_max 0.6 \
--thr_graph_steps 1000 \
--thr_graph_schedule 'cosine'
done
# Exchange dataset
@ -117,9 +82,57 @@ python -u run.py \
--degree_rescale 'none' \
--gate_temperature 0.6667 \
--tau_attn 1.0 \
--season_l0_lambda 0.0000
--season_l0_lambda 0.0000 \
--thr_graph_min 0.1 \
--thr_graph_max 0.6 \
--thr_graph_steps 1000 \
--thr_graph_schedule 'cosine'
done
# ETTm1 dataset
for pred_len in 96 192 336 720
do
python -u run.py \
--task_name long_term_forecast \
--is_training 1 \
--root_path ./dataset/ETT-small/ \
--data_path ETTm1.csv \
--model_id ETTm1_$pred_len'_'$pred_len \
--model $model_name \
--data ETTm1 \
--features M \
--seq_len 96 \
--label_len 48 \
--pred_len $pred_len \
--e_layers 2 \
--d_layers 1 \
--enc_in 7 \
--c_out 7 \
--d_model 128 \
--lradj 'sigmoid' \
--d_ff 256 \
--n_heads 16 \
--patch_len 16 \
--stride 8 \
--k_graph 5 \
--dropout 0.1 \
--revin 1 \
--des 'Exp' \
--itr 1 \
--season_encoder 'Transformer' \
--thr_graph 0.6 \
--symmetric_graph 1 \
--degree_rescale 'none' \
--gate_temperature 0.6667 \
--tau_attn 1.0 \
--season_l0_lambda 0.0000 \
--thr_graph_min 0.1 \
--thr_graph_max 0.6 \
--thr_graph_steps 1000 \
--thr_graph_schedule 'cosine'
done
# ETTm2 dataset
for pred_len in 96 192 336 720