Skip to content
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

ValueError: Buffer has wrong number of dimensions (expected 2, got 1) #11

Open
sadransh opened this issue Feb 15, 2021 · 0 comments
Open

Comments

@sadransh
Copy link

Thanks for sharing this work.

Is there any multivariate support? when Try to augment my data ( w/ shape (samples, length, n_features) ) I see the library is passing (samples, n_features) to dist_fun which results in this error

aaltd18/dba.py in calculate_dist_matrix(tseries, dist_fun, dist_fun_params)
     10         for j in range(i+1,N):
     11             y = tseries[j]
---> 12             dist = dist_fun(x,y,**dist_fun_params)[0]
     13             # because dtw returns the sqrt
     14             dist = dist*dist
dtw.pyx in dtw.dynamic_time_warping()
ValueError: Buffer has wrong number of dimensions (expected 2, got 1)

what is the correct input type? (x and y both having shape (1,)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant