first commit
This commit is contained in:
91
scripts/long_term_forecast/Traffic_script/Autoformer.sh
Normal file
91
scripts/long_term_forecast/Traffic_script/Autoformer.sh
Normal file
@ -0,0 +1,91 @@
|
||||
export CUDA_VISIBLE_DEVICES=6
|
||||
|
||||
model_name=Autoformer
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 96 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 192 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_336 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 336 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_720 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 720 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3
|
99
scripts/long_term_forecast/Traffic_script/Crossformer.sh
Normal file
99
scripts/long_term_forecast/Traffic_script/Crossformer.sh
Normal file
@ -0,0 +1,99 @@
|
||||
export CUDA_VISIBLE_DEVICES=6
|
||||
|
||||
model_name=Crossformer
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 96 \
|
||||
--pred_len 96 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--n_heads 2 \
|
||||
--batch_size 4 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 96 \
|
||||
--pred_len 192 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--n_heads 2 \
|
||||
--batch_size 4 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_336 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 96 \
|
||||
--pred_len 336 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--n_heads 2 \
|
||||
--batch_size 4 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_720 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 96 \
|
||||
--pred_len 720 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--n_heads 2 \
|
||||
--batch_size 4 \
|
||||
--itr 1
|
91
scripts/long_term_forecast/Traffic_script/FiLM.sh
Normal file
91
scripts/long_term_forecast/Traffic_script/FiLM.sh
Normal file
@ -0,0 +1,91 @@
|
||||
export CUDA_VISIBLE_DEVICES=3
|
||||
|
||||
model_name=FiLM
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 720 \
|
||||
--label_len 48 \
|
||||
--pred_len 96 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--batch_size 2
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 720 \
|
||||
--label_len 48 \
|
||||
--pred_len 192 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--batch_size 2
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_336 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 720 \
|
||||
--label_len 48 \
|
||||
--pred_len 336 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--batch_size 2
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_720 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 720 \
|
||||
--label_len 48 \
|
||||
--pred_len 720 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--batch_size 2
|
87
scripts/long_term_forecast/Traffic_script/Koopa.sh
Normal file
87
scripts/long_term_forecast/Traffic_script/Koopa.sh
Normal file
@ -0,0 +1,87 @@
|
||||
export CUDA_VISIBLE_DEVICES=6
|
||||
|
||||
model_name=Koopa
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_48 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--pred_len 48 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--learning_rate 0.001 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_192_96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 192 \
|
||||
--pred_len 96 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--learning_rate 0.001 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_288_144 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 288 \
|
||||
--pred_len 144 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--learning_rate 0.001 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_384_192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 384 \
|
||||
--pred_len 192 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--learning_rate 0.001 \
|
||||
--itr 1
|
99
scripts/long_term_forecast/Traffic_script/MICN.sh
Normal file
99
scripts/long_term_forecast/Traffic_script/MICN.sh
Normal file
@ -0,0 +1,99 @@
|
||||
export CUDA_VISIBLE_DEVICES=0
|
||||
|
||||
model_name=MICN
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 96 \
|
||||
--pred_len 96 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 96 \
|
||||
--pred_len 192 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_336 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 96 \
|
||||
--pred_len 336 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_720 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 96 \
|
||||
--pred_len 720 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--itr 1
|
29
scripts/long_term_forecast/Traffic_script/Mamba.sh
Normal file
29
scripts/long_term_forecast/Traffic_script/Mamba.sh
Normal file
@ -0,0 +1,29 @@
|
||||
model_name=Mamba
|
||||
|
||||
for pred_len in 96 192 336 720
|
||||
do
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_$pred_len'_'$pred_len \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len $pred_len \
|
||||
--label_len 48 \
|
||||
--pred_len $pred_len \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--enc_in 862 \
|
||||
--expand 2 \
|
||||
--d_ff 16 \
|
||||
--d_conv 4 \
|
||||
--c_out 862 \
|
||||
--d_model 128 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
|
||||
done
|
@ -0,0 +1,96 @@
|
||||
export CUDA_VISIBLE_DEVICES=0
|
||||
|
||||
model_name=MultiPatchFormer
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 96 \
|
||||
--e_layers 1 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 256 \
|
||||
--d_ff 512 \
|
||||
--des 'Exp' \
|
||||
--n_heads 8 \
|
||||
--batch_size 32 \
|
||||
--itr 1
|
||||
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 192 \
|
||||
--e_layers 1 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 256 \
|
||||
--d_ff 512 \
|
||||
--des 'Exp' \
|
||||
--n_heads 8 \
|
||||
--batch_size 32 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_336 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 336 \
|
||||
--e_layers 1 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 256 \
|
||||
--d_ff 512 \
|
||||
--des 'Exp' \
|
||||
--n_heads 8 \
|
||||
--batch_size 32 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_720 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 720 \
|
||||
--e_layers 1 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 256 \
|
||||
--d_ff 512 \
|
||||
--des 'Exp' \
|
||||
--n_heads 8 \
|
||||
--batch_size 32 \
|
||||
--itr 1
|
@ -0,0 +1,99 @@
|
||||
export CUDA_VISIBLE_DEVICES=5
|
||||
|
||||
model_name=Nonstationary_Transformer
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 96 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3 \
|
||||
--p_hidden_dims 128 128 \
|
||||
--p_hidden_layers 2
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 192 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3 \
|
||||
--p_hidden_dims 128 128 \
|
||||
--p_hidden_layers 2
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_336 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 336 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3 \
|
||||
--p_hidden_dims 16 16 \
|
||||
--p_hidden_layers 2
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_720 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 720 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3 \
|
||||
--p_hidden_dims 128 128 \
|
||||
--p_hidden_layers 2
|
103
scripts/long_term_forecast/Traffic_script/PatchTST.sh
Normal file
103
scripts/long_term_forecast/Traffic_script/PatchTST.sh
Normal file
@ -0,0 +1,103 @@
|
||||
export CUDA_VISIBLE_DEVICES=6
|
||||
|
||||
model_name=PatchTST
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 96 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--batch_size 4 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 192 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--batch_size 4 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_336 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 336 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--batch_size 4 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_720 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 720 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--batch_size 4 \
|
||||
--itr 1
|
91
scripts/long_term_forecast/Traffic_script/Pyraformer.sh
Normal file
91
scripts/long_term_forecast/Traffic_script/Pyraformer.sh
Normal file
@ -0,0 +1,91 @@
|
||||
export CUDA_VISIBLE_DEVICES=6
|
||||
|
||||
model_name=Pyraformer
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 96 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 192 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_336 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 336 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_720 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 720 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3
|
27
scripts/long_term_forecast/Traffic_script/SegRNN.sh
Normal file
27
scripts/long_term_forecast/Traffic_script/SegRNN.sh
Normal file
@ -0,0 +1,27 @@
|
||||
export CUDA_VISIBLE_DEVICES=0
|
||||
|
||||
model_name=SegRNN
|
||||
|
||||
seq_len=96
|
||||
for pred_len in 96 192 336 720
|
||||
do
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_$seq_len'_'$pred_len \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len $seq_len \
|
||||
--pred_len $pred_len \
|
||||
--seg_len 24 \
|
||||
--enc_in 862 \
|
||||
--d_model 512 \
|
||||
--dropout 0 \
|
||||
--learning_rate 0.001 \
|
||||
--des 'Exp' \
|
||||
--itr 1
|
||||
done
|
||||
|
101
scripts/long_term_forecast/Traffic_script/TSMixer.sh
Executable file
101
scripts/long_term_forecast/Traffic_script/TSMixer.sh
Executable file
@ -0,0 +1,101 @@
|
||||
|
||||
model_name=TSMixer
|
||||
learning_rate=0.001
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 96 \
|
||||
--pred_len 96 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 32 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--learning_rate $learning_rate \
|
||||
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 96 \
|
||||
--pred_len 192 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 32 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--learning_rate $learning_rate \
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_336 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 96 \
|
||||
--pred_len 336 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 32 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--learning_rate $learning_rate \
|
||||
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_720 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 96 \
|
||||
--pred_len 720 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 32 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--learning_rate $learning_rate \
|
125
scripts/long_term_forecast/Traffic_script/TimeMixer.sh
Executable file
125
scripts/long_term_forecast/Traffic_script/TimeMixer.sh
Executable file
@ -0,0 +1,125 @@
|
||||
#export CUDA_VISIBLE_DEVICES=0
|
||||
|
||||
model_name=TimeMixer
|
||||
|
||||
seq_len=96
|
||||
e_layers=3
|
||||
down_sampling_layers=3
|
||||
down_sampling_window=2
|
||||
learning_rate=0.01
|
||||
d_model=32
|
||||
d_ff=64
|
||||
batch_size=8
|
||||
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id Traffic_$seq_len'_'96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len $seq_len \
|
||||
--label_len 0 \
|
||||
--pred_len 96 \
|
||||
--e_layers $e_layers \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--d_model $d_model \
|
||||
--d_ff $d_ff \
|
||||
--batch_size $batch_size \
|
||||
--learning_rate $learning_rate \
|
||||
--down_sampling_layers $down_sampling_layers \
|
||||
--down_sampling_method avg \
|
||||
--down_sampling_window $down_sampling_window
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id Traffic_$seq_len'_'192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len $seq_len \
|
||||
--label_len 0 \
|
||||
--pred_len 192 \
|
||||
--e_layers $e_layers \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--d_model $d_model \
|
||||
--d_ff $d_ff \
|
||||
--batch_size $batch_size \
|
||||
--learning_rate $learning_rate \
|
||||
--down_sampling_layers $down_sampling_layers \
|
||||
--down_sampling_method avg \
|
||||
--down_sampling_window $down_sampling_window
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id Traffic_$seq_len'_'336 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len $seq_len \
|
||||
--label_len 0 \
|
||||
--pred_len 336 \
|
||||
--e_layers $e_layers \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--d_model $d_model \
|
||||
--d_ff $d_ff \
|
||||
--batch_size $batch_size \
|
||||
--learning_rate $learning_rate \
|
||||
--down_sampling_layers $down_sampling_layers \
|
||||
--down_sampling_method avg \
|
||||
--down_sampling_window $down_sampling_window
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id Traffic_$seq_len'_'720 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len $seq_len \
|
||||
--label_len 0 \
|
||||
--pred_len 720 \
|
||||
--e_layers $e_layers \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--d_model $d_model \
|
||||
--d_ff $d_ff \
|
||||
--batch_size $batch_size \
|
||||
--learning_rate $learning_rate \
|
||||
--down_sampling_layers $down_sampling_layers \
|
||||
--down_sampling_method avg \
|
||||
--down_sampling_window $down_sampling_window
|
99
scripts/long_term_forecast/Traffic_script/TimeXer.sh
Normal file
99
scripts/long_term_forecast/Traffic_script/TimeXer.sh
Normal file
@ -0,0 +1,99 @@
|
||||
export CUDA_VISIBLE_DEVICES=3
|
||||
|
||||
model_name=TimeXer
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 96 \
|
||||
--e_layers 3 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--des 'Exp' \
|
||||
--batch_size 16 \
|
||||
--learning_rate 0.001 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 192 \
|
||||
--e_layers 3 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--des 'Exp' \
|
||||
--batch_size 16 \
|
||||
--learning_rate 0.001 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_336 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 336 \
|
||||
--e_layers 2 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--des 'Exp' \
|
||||
--batch_size 16 \
|
||||
--learning_rate 0.001 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_720 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 720 \
|
||||
--e_layers 2 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--des 'Exp' \
|
||||
--batch_size 16 \
|
||||
--learning_rate 0.001 \
|
||||
--itr 1
|
99
scripts/long_term_forecast/Traffic_script/TimesNet.sh
Normal file
99
scripts/long_term_forecast/Traffic_script/TimesNet.sh
Normal file
@ -0,0 +1,99 @@
|
||||
export CUDA_VISIBLE_DEVICES=0
|
||||
|
||||
model_name=TimesNet
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 96 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 192 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_336 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 336 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_720 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 720 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--top_k 5 \
|
||||
--des 'Exp' \
|
||||
--itr 1
|
91
scripts/long_term_forecast/Traffic_script/Transformer.sh
Normal file
91
scripts/long_term_forecast/Traffic_script/Transformer.sh
Normal file
@ -0,0 +1,91 @@
|
||||
export CUDA_VISIBLE_DEVICES=5
|
||||
|
||||
model_name=Transformer
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 96 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 192 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_336 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 336 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_720 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 720 \
|
||||
--e_layers 2 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--itr 1 \
|
||||
--train_epochs 3
|
49
scripts/long_term_forecast/Traffic_script/WPMixer.sh
Normal file
49
scripts/long_term_forecast/Traffic_script/WPMixer.sh
Normal file
@ -0,0 +1,49 @@
|
||||
|
||||
export CUDA_VISIBLE_DEVICES=0
|
||||
|
||||
# Model name
|
||||
model_name=WPMixer
|
||||
|
||||
# Datasets and prediction lengths
|
||||
dataset=traffic
|
||||
seq_lens=(1200 1200 1200 1200)
|
||||
pred_lens=(96 192 336 720)
|
||||
learning_rates=(0.0010385 0.000567053 0.001026715 0.001496217)
|
||||
batches=(16 16 16 16)
|
||||
epochs=(60 60 50 60)
|
||||
dropouts=(0.05 0.05 0.0 0.05)
|
||||
patch_lens=(16 16 16 16)
|
||||
lradjs=(type3 type3 type3 type3)
|
||||
d_models=(16 32 32 32)
|
||||
patiences=(12 12 12 12)
|
||||
|
||||
# Model params below need to be set in WPMixer.py Line 15, instead of this script
|
||||
wavelets=(db3 db3 bior3.1 db3)
|
||||
levels=(1 1 1 1)
|
||||
tfactors=(3 3 7 7)
|
||||
dfactors=(5 5 7 3)
|
||||
strides=(8 8 8 8)
|
||||
|
||||
# Loop over datasets and prediction lengths
|
||||
for i in "${!pred_lens[@]}"; do
|
||||
python -u run.py \
|
||||
--is_training 1 \
|
||||
--root_path ./data/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id wpmixer \
|
||||
--model $model_name \
|
||||
--task_name long_term_forecast \
|
||||
--data $dataset \
|
||||
--seq_len ${seq_lens[$i]} \
|
||||
--pred_len ${pred_lens[$i]} \
|
||||
--label_len 0 \
|
||||
--d_model ${d_models[$i]} \
|
||||
--patch_len ${patch_lens[$i]} \
|
||||
--batch_size ${batches[$i]} \
|
||||
--learning_rate ${learning_rates[$i]} \
|
||||
--lradj ${lradjs[$i]} \
|
||||
--dropout ${dropouts[$i]} \
|
||||
--patience ${patiences[$i]} \
|
||||
--train_epochs ${epochs[$i]} \
|
||||
--use_amp
|
||||
done
|
103
scripts/long_term_forecast/Traffic_script/iTransformer.sh
Normal file
103
scripts/long_term_forecast/Traffic_script/iTransformer.sh
Normal file
@ -0,0 +1,103 @@
|
||||
export CUDA_VISIBLE_DEVICES=0
|
||||
|
||||
model_name=iTransformer
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_96 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 96 \
|
||||
--e_layers 4 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--batch_size 16 \
|
||||
--learning_rate 0.001 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_192 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 192 \
|
||||
--e_layers 4 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--batch_size 16 \
|
||||
--learning_rate 0.001 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_336 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 336 \
|
||||
--e_layers 4 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--batch_size 16 \
|
||||
--learning_rate 0.001 \
|
||||
--itr 1
|
||||
|
||||
python -u run.py \
|
||||
--task_name long_term_forecast \
|
||||
--is_training 1 \
|
||||
--root_path ./dataset/traffic/ \
|
||||
--data_path traffic.csv \
|
||||
--model_id traffic_96_720 \
|
||||
--model $model_name \
|
||||
--data custom \
|
||||
--features M \
|
||||
--seq_len 96 \
|
||||
--label_len 48 \
|
||||
--pred_len 720 \
|
||||
--e_layers 4 \
|
||||
--d_layers 1 \
|
||||
--factor 3 \
|
||||
--enc_in 862 \
|
||||
--dec_in 862 \
|
||||
--c_out 862 \
|
||||
--des 'Exp' \
|
||||
--d_model 512 \
|
||||
--d_ff 512 \
|
||||
--batch_size 16 \
|
||||
--learning_rate 0.001 \
|
||||
--itr 1
|
Reference in New Issue
Block a user