-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sliding window error #13
Comments
I had the same problem |
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: