LTSF-Linear icon indicating copy to clipboard operation
LTSF-Linear copied to clipboard

Error ValueError: __len__() should return >= 0

Open Med-Rokaimi opened this issue 2 years ago • 2 comments

I created my own sh file to run on my own dataset (4 features including the target) and I got this error File "LTSF-Linear/exp/exp_main.py", line 42, in _get_data data_set, data_loader = data_provider(self.args, flag) File "LTSF-Linear/data_provider/data_factory.py", line 46, in data_provider print(flag, len(data_set)) ValueError: len() should return >= 0 Traceback (most recent call last):

Med-Rokaimi avatar Jun 12 '23 07:06 Med-Rokaimi

Maybe you can make your dataset have the same format as the existing dataset.

mixiancmx avatar Jun 13 '23 06:06 mixiancmx

Maybe you can make your code extensible to different formats!!! :)

jcrucesdeveloper avatar Jan 24 '24 16:01 jcrucesdeveloper