Can't run Transformer model instead of iTransformer
hi, I'm gonna test the experiment. Unfortunately, I find out that I can't run Transformer. Below is my steps:
- using following script to train and create Transformer model , which will be saved in checkin directory,everything is ok. ................................................................................................................................................................................................................................................... export CUDA_VISIBLE_DEVICES=0
model_name=Transformer
python -u run.py
--is_training 0
--root_path ./dataset/weather/
--data_path weather.csv
--model_id weather_96_96
--model $model_name
--data custom
--features M
--seq_len 96
--pred_len 96
--e_layers 3
--enc_in 21
--dec_in 21
--c_out 21
--des 'Exp'
--d_model 512
--d_ff 512
--itr 1
...................................................................................................................................................................................................................................................
2. I changed 'is_training 0' to 1 to run predict, and I also revoke exp.predict function using code below
exp.predict(setting, load=1)
when predict run, it always have following errors, which is very strange, since test function can be run correctly, why predict can't.
This situation has confused me two weeks ,would you like to tell me why? ...................................................................................................................................................................................................................................................
File "/home/mjf/iTransformer-main/run.py", line 168, in
Anyone try Transformer model ?
I think I know how Transformer fails to run. Set 96-48-96 weather forecasting as an example. Predicting needs size of seq_y 48(label_len)+96(pred_len),however, Dataset_Pred only provide label_len 48.So you need to extend it to144.
Hi, for Transformer I am not using from the iTransformer's author, instead I created the Transformers model directly from Huggingface documentation!