Random Projection Hashing
Provides a PyTorch module for random projection hashing with GPU acceleration. Similar tensors (cosine similarity) will be assigned the same hash with high probability.
Installation
$ pip install rph
Usage
See example.py for an example on how to use rph on DNA strings. Please note that rph can be used with any arbitrary tensors. In summary, this package provides a module RandomProjectionHashModule(input_dim, hash_bits) where input_dim is the size of the input tensors and hash_bits is the number of bits to use for the final hash value. For example, choosing 4 bits will result in all tensors being split into 16 buckets only.
Metadata
Release files for rph 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rph-1.0.0.tar.gz | 2.0 kB | Without provenance | Details for rph-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rph-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for rph-1.0.0-py3-none-any.whl |
Total release size: 5.2 kB
Release files / rph-1.0.0.tar.gz
| Download URL | rph-1.0.0.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fefb73a979bcaee910fb6c63cb649d187bcabd425b47fce3578031012a4be1fe
|
|
BLAKE2b-256 checksum How to use checksums |
9b673c941b21c7db3be5de8babebcf5e714806d949f7065e6fbf23ae9efab399
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / rph-1.0.0-py3-none-any.whl
| Download URL | rph-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f8da4ff560f4a54c3c9d19a2c2554ad7e9b662c305195ad55fc5b93ce8e3a99
|
|
BLAKE2b-256 checksum How to use checksums |
3a3c347871765ae49b6851194adf0013fc63c506f852dc9124a0e8e73702559f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for rph 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.