Comments (4)
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.
Thanks!
from pqkmeans.
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.
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)
- Missing LICENSE HOT 1
- Pickling the encoder fails HOT 5
- Is this method works with other PQ methods? (OPQ, LOPQ) HOT 5
- init PQkmeans class with cluster centers HOT 3
- Comparision to Faiss HOT 2
- Getting centroid vector HOT 2
- How to speed up the "predict" function? HOT 2
- Can't pip install HOT 2
- logging errors HOT 1
- pip build fails on mac HOT 2
- create conda pqkmeans from pypi
- create pqkmeans conda package version from pypi HOT 2
- module 'pqkmeans' has no attribute 'encoder' HOT 1
- Get Subvector to run with other algorithment HOT 3
- Sparse Vector HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pqkmeans.