Skip to main content

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

TODO:

  • Docs (zensical)
  • Code Improvements:
    • Make some of the hard coded values variables
  • Performance Improvements:
    • Use float32 numpy arrays
    • Use from scipy.optimize import linear_sum_assignment rather than QAP or reduce number of QAP loops
    • MiniBatchKMeans instead of Kmeans
    • Concatenate rather than vstack
  • Add in original Vec2Vec method

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mini_vec2vec-0.1.1.tar.gz (102.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mini_vec2vec-0.1.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file mini_vec2vec-0.1.1.tar.gz.

File metadata

  • Download URL: mini_vec2vec-0.1.1.tar.gz
  • Upload date:
  • Size: 102.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mini_vec2vec-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cf62fa503b71e9d071d714d3aa5f412156850f01cfaecf837b0ff5f45bae34a8
MD5 d346399903cb92154b8e200fe66ce75e
BLAKE2b-256 5547bad574eb46d21e2bbb48b4dea23796215f7d9b7d0eaa7b94ae147fc232a9

See more details on using hashes here.

File details

Details for the file mini_vec2vec-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mini_vec2vec-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mini_vec2vec-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 795072bb601c3b887516454d28322c8c8fa246985f31cc66dda77fe21afd942c
MD5 d63d5d0e360c6c2a68ce4496a365a357
BLAKE2b-256 2ec20cbfa177c7971c04160b0495baab35288feb0b52a888fc7b3b3ee20e7400

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page