mini-vec2vec
This is a python package implementation of the mini-vec2vec: Scaling Universal Geometry Alignment with Linear Transformations paper.
This is not the official python implementation that is used in the paper, that code can be found here. All credit goes to guy-dar, this just takes his work but puts it into a package.
Install
pip install mini-vec2vec
Contribute
Create a venv and install the dev dependencies. (I have used UV to create this package)
python3 -m venv .venv
source .venv/bin/activate
pip install uv
uv sync
uvx pre-commit install
Testing
uv pip install -e .
uv run pytest
Docs
Docs are created using zensical, to start the docs locally:
uv run zensical serve
TODO:
- Code Improvements:
- Make some of the hard coded values variables
- Performance Improvements:
- Use float32 numpy arrays
- Use
from scipy.optimize import linear_sum_assignmentrather than QAP or reduce number of QAP loops MiniBatchKMeansinstead ofKmeans- Could we expand to any clustering algorithm?
- Concatenate rather than vstack
- Add in original Vec2Vec method
- Add example for hyper parameter tuning using grid search or bayesian optimization
Metadata
Release files for mini-vec2vec 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mini_vec2vec-0.1.2.tar.gz | 194.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mini_vec2vec-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 204.8 kB
Release files / mini_vec2vec-0.1.2.tar.gz
| Download URL | mini_vec2vec-0.1.2.tar.gz |
|---|---|
| Size | 194.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
472c4b7bf6e19d312ac92a3b7b267e4dbce38ddc3b8c75354fe9f3c57426e2de
|
|
BLAKE2b-256 checksum How to use checksums |
7e45b9a17f7b1f2971fdea89a051863af4952851b3ce4d8282d602b1d4b5e54f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / mini_vec2vec-0.1.2-py3-none-any.whl
| Download URL | mini_vec2vec-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7c4eeeee4c7d996b6ebe147a8ed93dd7f25978e3ddfb5f318df979baec8f308
|
|
BLAKE2b-256 checksum How to use checksums |
4bb609f7db9a71a7ae27874b1be573f33700e6a3850d13b3361d5e77a006d51a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|