tsai icon indicating copy to clipboard operation
tsai copied to clipboard

use_single_batch in TSStandardize is broken

Open bankeiyotaku opened this issue 2 years ago • 0 comments

In the setups() call in TSStandardize with use_single_batch=False (default is True), it calls

o = dl.dataset.getitem([slice(None)])[0] to get the entire dataset to calculate the mean/std.

This causes a crash (python 3.10.12) to crash. I was able to fix this by taking the slice(None) out of the list/[] in(009_data_preprocessing.ipynb).

o = dl.dataset.getitem(slice(None))[0] <-- this works

bankeiyotaku avatar Sep 22 '23 18:09 bankeiyotaku