Coder Social home page Coder Social logo

mlknn's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mlknn's Issues

about performance & some bugs

Hi,
I'm running your code and find that the performance (i.e. hamming loss) is slightly worse than that stated in the paper.
By checking the code I find some, I think, bugs there:

  1. wrong length of label vector: the original label data provided in dataset/ are 13 in length, but it should be 14. I find this is raised by the wrong starting point of slicing in line 22 & 24 in data_process.py.
  2. mistaken assignment of Peh0/1: in line 126 & 127 of mlknn.py, Peh0 & Peh1 are assigned as if they are scalars, but they are actually matrices. I guess they should be indexed by [i][j] before being assigned.
  3. failed loading: in the load(·) function of MLKNN, the loaded data are assigned to some non-member variables. I guess there should be a prefix self. before those l-values.

But despite fixing all these, I get a similar result (0.3037077426390403) as before (0.30307860078852444).
I also find that result remains unchanged after Ph0/1 & Peh0/1 being set to all zeros in the front of the test(·) function, but becomes worse if they are set to random values.
Any thought?
Thanks

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.