Skip to content

EMD not leading to any results, without any error raised #57

@ChristelDG

Description

@ChristelDG

Hello,

My question may be a very easy one but I am loosing my nerves trying to solve it.
here are my parameters :
first_histogram = [1. 1. 1.]
second_histogram = [2. 0. 0.]
distance_matrix = array([[0. , 0. , 0. , 0.60058105, 1. ],
[0. , 0. , 0. , 0.60058105, 1. ],
[0. , 0. , 0. , 0.60058105, 1. ],
[0.60058105, 0.60058105, 0.60058105, 0. , 0.98793931],
[1. , 1. , 1. , 0.98793931, 0. ]])

(My distance matrix is the result of sklearn.metrics.pairwise.cosine_distances(), so it truly is a distance matrix)
Now if I try to do :
D_EMD = emd(first_histogram, second_histogram, distance_matrix)

The code runs for ever without getting any results, without any Error Raised...

Does anyone have any idea what I'm doing wrong?

Thanks a lot !

Christel

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