Giter Club home page Giter Club logo

Comments (4)

matsui528 avatar matsui528 commented on June 18, 2024

The k-means training can be rerun using new data with a single iteration, as follows.

  • Set the current centers as the initial centers
  • Slowly update the centers, i.e., instead of replacing the old centers with new ones, update the old centers gradually in the new direction

Then all vectors can be reassigned to the new center. It may be enough to update only the vectors whose centers have been updated significantly.

from pqkmeans.

pablocael avatar pablocael commented on June 18, 2024

Thanks!

from pqkmeans.

pablocael avatar pablocael commented on June 18, 2024

Hi, another question if you don't mind.
Can I use the pqencoder to reduce dimensionality of a feature database and then use sklearn.neighbors.NearestNeighbors on the encoded vectors?

Thanks

from pqkmeans.

matsui528 avatar matsui528 commented on June 18, 2024

You need to reconstruct the original vector from a PQ-code. See X2_reconstructed = encoder.inverse_transform(X2_pqcode) in the tutorial https://github.com/DwangoMediaVillage/pqkmeans/blob/master/tutorial/1_pqkmeans.ipynb

Then you can run sklearn search on the reconstructed vectors.

from pqkmeans.

Related Issues (16)

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.