Skip to content

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

Description

@sadransh

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions