Skip to content

Can the emd be applied to N*M features? #5

Description

@kobewilliam

Hi,
I have features and weights like that:

 feature_1 =np.array([ 
       [1.04575316661239,1.69292990243218,0.612760774468057],
       [1.16821637031221,0.218735435440605,-0.875853066386149],
       [0.100418304140198,-1.15811606056465,-0.983457410903412],
       [-0.201670950392358,1.38218284951703,0.155416682920061],
        [0,0,0] ] )
feature_2 =np.array([[0.959976216876303,0.887060389242358,0.423764319880558],
        [1.05375402855641,-0.0792857580903692,-0.751762626709595],
        [0.221638940653155,-1.42722937661751,-0.341283338320322],
        [-0.08438020740631,1.1902087763015,0.213336015331903],
        [-1.2245913124368,0.387806869920699,-0.0664959921088462]])


weight_1 = [0.339011925042589,0.198466780238501,0.126064735945486,0.336456558773424,0]
weight_2 = [0.438243366880146,0.184812442817932,0.0942360475754803,0.193961573650503,0.0887465690759378]

How can I calculate EMD value with those formate features? Thanks!

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