Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我换了一个自己的新数据集它有52个特征,比如--seq_len', '20', '--pred_len', '15',我怎么去修改 #153

Open
zhurong-dot opened this issue Dec 19, 2024 · 0 comments

Comments

@zhurong-dot
Copy link

Traceback (most recent call last):
File "run.py", line 132, in
exp.train(setting)
File "C:\Users\ZRCC\Desktop\kk\iTransformer-main\iTransformer-main\experiments\exp_long_term_forecasting.py", line 108, in train
for i, (batch_x, batch_y, batch_x_mark, batch_y_mark) in enumerate(train_loader):
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data\dataloader.py", line 634, in next
data = self._next_data()
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data\dataloader.py", line 678, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\fetch.py", line 54, in fetch
return self.collate_fn(data)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 264, in default_collate
return collate(batch, collate_fn_map=default_collate_fn_map)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 142, in collate
return [collate(samples, collate_fn_map=collate_fn_map) for samples in transposed] # Backwards compatibility.
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 142, in
return [collate(samples, collate_fn_map=collate_fn_map) for samples in transposed] # Backwards compatibility.
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 119, in collate
return collate_fn_map[elem_type](batch, collate_fn_map=collate_fn_map)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 171, in collate_numpy_array_fn
return collate([torch.as_tensor(b) for b in batch], collate_fn_map=collate_fn_map)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 119, in collate
return collate_fn_map[elem_type](batch, collate_fn_map=collate_fn_map)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 162, in collate_tensor_fn
return torch.stack(batch, 0, out=out)
RuntimeError: stack expects each tensor to be equal size, but got [63, 52] at entry 0 and [0, 52] at entry 26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant