Traceback (most recent call last):
File "run.py", line 228, in
exp.test(setting, test=1)
File "G:\PythonProjects\TimeXer-main\exp\exp_long_term_forecasting.py", line 233, in test
outputs = test_data.inverse_transform(outputs.squeeze(0)).reshape(shape)
ValueError: cannot select an axis to squeeze out which has size not equal to one
Traceback (most recent call last):
File "run.py", line 228, in
exp.test(setting, test=1)
File "G:\PythonProjects\TimeXer-main\exp\exp_long_term_forecasting.py", line 231, in test
outputs = test_data.inverse_transform(outputs.reshape(shape[0] shape[1], -1)).reshape(shape)
File "G:\PythonProjects\TimeXer-main\data_provider\data_loader.py", line 434, in inverse_transform
return self.scaler.inverse_transform(data)
File "G:\anaconda3\envs\TimeXer\lib\site-packages\sklearn\preprocessing_data.py", line 1052, in inverse_transform
X = self.scale_
ValueError: non-broadcastable output operand with shape (96,1) doesn't match the broadcast shape (96,3)
Traceback (most recent call last): File "run.py", line 228, in
exp.test(setting, test=1)
File "G:\PythonProjects\TimeXer-main\exp\exp_long_term_forecasting.py", line 233, in test
outputs = test_data.inverse_transform(outputs.squeeze(0)).reshape(shape)
ValueError: cannot select an axis to squeeze out which has size not equal to one
按照 https://github.com/thuml/Time-Series-Library/commit/20eff0e 修改后,依然报错:
Traceback (most recent call last): File "run.py", line 228, in
exp.test(setting, test=1)
File "G:\PythonProjects\TimeXer-main\exp\exp_long_term_forecasting.py", line 231, in test
outputs = test_data.inverse_transform(outputs.reshape(shape[0] shape[1], -1)).reshape(shape)
File "G:\PythonProjects\TimeXer-main\data_provider\data_loader.py", line 434, in inverse_transform
return self.scaler.inverse_transform(data)
File "G:\anaconda3\envs\TimeXer\lib\site-packages\sklearn\preprocessing_data.py", line 1052, in inverse_transform
X = self.scale_
ValueError: non-broadcastable output operand with shape (96,1) doesn't match the broadcast shape (96,3)