OdysseasKr/online-nilm

ignore the last window size?

Hessen525 opened this issue · 1 comments

Hi, @OdysseasKr
Thanks for your work. gen_batch(chunk.iloc[:,1], chunk.iloc[:,0], chunk.shape[0]-window_size, 0, window_size) in gen.py. Why not chunk.shape[0]-window_size+1?

ex: batch size: 5, window_size = 2, the number of sliding windows should be 5-2+1=4 if I understand correctly,

Thanks.

You are indeed correct on that, I will fix that as soon as possible.