Python implementation of the mini-vec2vec paper
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mini_vec2vec-0.1.2.tar.gz.
File metadata
- Download URL: mini_vec2vec-0.1.2.tar.gz
- Upload date:
- Size: 194.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
472c4b7bf6e19d312ac92a3b7b267e4dbce38ddc3b8c75354fe9f3c57426e2de
|
|
| MD5 |
3f8758a263586e8573b70f647342464f
|
|
| BLAKE2b-256 |
7e45b9a17f7b1f2971fdea89a051863af4952851b3ce4d8282d602b1d4b5e54f
|
File details
Details for the file mini_vec2vec-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mini_vec2vec-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7c4eeeee4c7d996b6ebe147a8ed93dd7f25978e3ddfb5f318df979baec8f308
|
|
| MD5 |
24c2bc34d8bca9d17ad3a61e3ffe4006
|
|
| BLAKE2b-256 |
4bb609f7db9a71a7ae27874b1be573f33700e6a3850d13b3361d5e77a006d51a
|