Giter Club home page Giter Club logo

swmd's People

Stargazers

Marcus Gawronsky avatar Hiroaki Yamagiwa avatar Junchen(Kevin) Zhao avatar Gedeon Muhawenayo avatar Zachary Kurtz avatar Jiang avatar Hoang Cuong avatar Dmitriy Valetov avatar  avatar MasterMonster avatar  avatar Marc Hadfield avatar  avatar BOBOTANG avatar Bruno Cabral avatar yuanke avatar Eugene Ware avatar  avatar  avatar  avatar hdray avatar Roberto Silveira avatar  avatar Stark avatar Eliton Luiz Scardin Perin avatar Peihua Chen avatar Dongfang Li avatar Zihao Zheng avatar Nice avatar

Watchers

Bin Cao avatar Raji Baskaran avatar

swmd's Issues

ValueError when running python swmd.py

Hi Boyuan,

I'm quite a lot impressed by your Python codebase of S-WMD [Supervised Word Mover's Distance, NIPS 2016]. However when I was following your instruction and trying to run "python swmd.py", I got into this error:

$ python swmd.py
Dataset: bbcsport split: 1 Iteration: 1
Traceback (most recent call last):
  File "swmd.py", line 108, in <module>
    [dw, dA] = f.grad_swmd(xtr,ytr,BOW_xtr,indices_tr,xtr_center,w,A,lambdA,batch,rangE)
  File "functions.pyx", line 235, in functions.grad_swmd
    dw_ii[idx_i] = dw_ii[idx_i] + cij*dwmd_dwi
ValueError: shape mismatch: value array of shape (77,77) could not be broadcast to indexing result of shape (77,)

So I wonder am I missing something? Thanks a lot in advance. :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.