Closed mw66 closed 1 year ago
specfiically:
the following line are in vali(), train(), and test()
f_dim = -1 if self.args.features == 'MS' else 0
https://github.com/thuml/Autoformer/blob/main/exp/exp_main.py#L77 https://github.com/thuml/Autoformer/blob/main/exp/exp_main.py#L138 https://github.com/thuml/Autoformer/blob/main/exp/exp_main.py#L149 https://github.com/thuml/Autoformer/blob/main/exp/exp_main.py#L228
BUT is not in predict(): https://github.com/thuml/Autoformer/blob/main/exp/exp_main.py#L305
You really should re-factor this into a separate function to avoid code duplication.
this file has too much code-duplcation:
https://github.com/thuml/Autoformer/blob/main/exp/exp_main.py#L62-L79
You guys copy & paste code? unbelievable!
Hi, thanks for your commit. We have made the code cleaner.
With --features M, the test output pred.npy shape is (1422, 96, 8), and real_prediction.npy shape is (1, 96, 8)
With --features MS, the test output pred.npy shape is (1422, 96, 1), and real_prediction.npy shape is still (1, 96, 8)