aaltd18 icon indicating copy to clipboard operation
aaltd18 copied to clipboard

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

Open sadransh opened this issue 3 years ago • 0 comments

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,)

sadransh avatar Feb 15 '21 06:02 sadransh