You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading data... is fine
..from file data/oppChallenge_gestures.data
..reading instances: train (557963, 113), test (118750, 113)
Until I call a sliding window function, error is shown
Sensor data is segmented using a sliding window mechanism
X_test, y_test = opp_sliding_window(X_test, y_test, SLIDING_WINDOW_LENGTH, SLIDING_WINDOW_STEP_SHORT)
X_train, y_train = opp_sliding_window(X_train, y_train, SLIDING_WINDOW_LENGTH, SLIDING_WINDOW_STEP)
TypeError Traceback (most recent call last)
in ()
1 # Sensor data is segmented using a sliding window mechanism
----> 2 X_test, y_test = opp_sliding_window(X_test, y_test, SLIDING_WINDOW_LENGTH, SLIDING_WINDOW_STEP_SHORT)
3 X_train, y_train = opp_sliding_window(X_train, y_train, SLIDING_WINDOW_LENGTH, SLIDING_WINDOW_STEP)
1 frames
/content/drive/My Drive/sensors2020/sliding_window.py in sliding_window(a, ws, ss, flatten)
93 # remove any dimensions with size 1
94 dim = filter(lambda i : i != 1,dim)
---> 95 return strided.reshape(dim)
TypeError: expected sequence object with len >= 0 or a single integer
The text was updated successfully, but these errors were encountered:
Loading data... is fine
..from file data/oppChallenge_gestures.data
..reading instances: train (557963, 113), test (118750, 113)
Until I call a sliding window function, error is shown
Sensor data is segmented using a sliding window mechanism
X_test, y_test = opp_sliding_window(X_test, y_test, SLIDING_WINDOW_LENGTH, SLIDING_WINDOW_STEP_SHORT)
X_train, y_train = opp_sliding_window(X_train, y_train, SLIDING_WINDOW_LENGTH, SLIDING_WINDOW_STEP)
TypeError Traceback (most recent call last)
in ()
1 # Sensor data is segmented using a sliding window mechanism
----> 2 X_test, y_test = opp_sliding_window(X_test, y_test, SLIDING_WINDOW_LENGTH, SLIDING_WINDOW_STEP_SHORT)
3 X_train, y_train = opp_sliding_window(X_train, y_train, SLIDING_WINDOW_LENGTH, SLIDING_WINDOW_STEP)
1 frames
/content/drive/My Drive/sensors2020/sliding_window.py in sliding_window(a, ws, ss, flatten)
93 # remove any dimensions with size 1
94 dim = filter(lambda i : i != 1,dim)
---> 95 return strided.reshape(dim)
TypeError: expected sequence object with len >= 0 or a single integer
The text was updated successfully, but these errors were encountered: