Skip to main content

Documentation Status Coveralls PyPI-Server Monthly Downloads Project generated with PyScaffold

FlyHash

A novel hashing algorithm based on "A neural algorithm for a fundamental computing problem" by S. Dasgupta, C. F. Stevens, and S. Navlakha (2017)

FlyHash is a LSH algorithm that maps input data to a sparse hash embedding, where the dimension of the hash embedding is much larger than the input, and keeps the locality of the input data in the hash embedding.

FlyHash is designed to be cheap to compute, yet not ganranteeing memory efficiency. It is suitable for hashing small to medium sized data ($d$ ~ 10-1000) to a large hash embedding ($m$ ~ 100-10000).

Usage

Using a large hash_dim $m=100$ for a small input_dim $d=10$:

>>> import numpy as np
>>> from flyhash import FlyHash
>>> d = 10
>>> m = 100
>>> flyhash = FlyHash(d, m)
>>> data = np.random.randn(5, d)
>>> hashed_data = flyhash(data)

For detailed usage, please refer to the documentation.

Release files for FlyHash 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FlyHash 1.1.1
File Size Uploaded
FlyHash-1.1.1.tar.gz 23.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for FlyHash 1.1.1
File Interpreter ABI Platform
FlyHash-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 29.7 kB

Release files / FlyHash-1.1.1.tar.gz

Download URL FlyHash-1.1.1.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
70fa57709e3fbd5dec6eedacb9f112a5798c2b6a68b856e31af0bf678c306816
BLAKE2b-256 checksum
How to use checksums
72d45b80050f64e126822f70ee0b9c2979216d7b83cdf57a2e2c274f9435671d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / FlyHash-1.1.1-py3-none-any.whl

Download URL FlyHash-1.1.1-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12d6d91cb3b55718593c49025513bf1ece1d4d9d73c84c9949457cb16e64f854
BLAKE2b-256 checksum
How to use checksums
65bae490949d4c577fed6d23004405de94aebe7c94f70b7da4775d828794408f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page