A fast and scalable Locality Sensitive Hashing implementation
Project description
LSH-Fast
A fast and scalable implementation of Locality Sensitive Hashing in Python.
Installation
pip install lsh-fast
Usage
from lsh import HashParams, LSHHashFunctions
import numpy as np
# Initialize hash functions
params = HashParams(num_projections=100, projection_dim=1000)
hash_functions = LSHHashFunctions(params)
# Compute hash values for a vector
vector = np.random.randn(1000)
hash_values = hash_functions.compute_hash_values(vector)
# Compute bucket hashes
bucket_hashes = hash_functions.compute_bucket_hash(hash_values, band_size=10)
Features
- Fast and memory-efficient implementation
- Optimized for large-scale data
- Easy to use API
- Configurable parameters
License
MIT License
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
lsh_fast-0.1.0.tar.gz
(3.5 kB
view details)
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 lsh_fast-0.1.0.tar.gz.
File metadata
- Download URL: lsh_fast-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
853443855cf429dee534ce0e24e2999ef7d3a7a4da9de3e66df1401ef2ddca82
|
|
| MD5 |
b7294118fd902283d82e245f4defdafc
|
|
| BLAKE2b-256 |
09e3e613ed92a894c9a4a80559d10b424baff3cc390ea4d91811e1385766dba1
|
File details
Details for the file lsh_fast-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lsh_fast-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
648e4e39e4ada86220518cf9e5fe4e05b60ddf69b298b8477d367de4fc863185
|
|
| MD5 |
7aae16b24792081d78bbfa99179bf47e
|
|
| BLAKE2b-256 |
9b3c9c17da8a82542e528d4f5d40f73d7307f1dded13efd817e5031cafab770c
|