ContrastiveLearningHAR icon indicating copy to clipboard operation
ContrastiveLearningHAR copied to clipboard

Bug in the get_windows_dataset_from_user_list_format function during preprocessing

Open ziyuanzhao2000 opened this issue 3 years ago • 0 comments

I've observed a bug in this function - if n_windows = 1 due to a large window size, then np.squeeze will make user_dataset_windowed[user_id][0] a number with dimension 0 rather than a numpy array, and that will break the preprocessing script.

ziyuanzhao2000 avatar Apr 10 '22 02:04 ziyuanzhao2000