Point-to-hyperplane nearest neighbours search (P2HNNS)
A Python library for efficient Point-to-hyperplane nearest neighbours search (P2HNNS) using locality sensitive hashing (LSH) approaches. The library implements the 5 different methods described below.
- Bilinear Hyperplane (BH) hashing
- Embedding Hyperplane (EH) hashing
- Multilinear Hyperplane (MH) hashing
- Nearest Hyperplane (NH) hashing
- Furthest Hyperplane (FH) hashing
The implementation is based on the original code of HuangQiang (implemented in C++) and stepping1st(implemented in Java).
The original papers proposing each method will be explicitly provided in section Resources.
Installation
The library can be installed via the pip package manager using the following command
pip install P2HNNS
Documentation
Extensive documentation for using the library is available via Read the Docs
Tests
Unit tests are written using the pytest framework for all functionalities of the library. Tests are located in the /tests directory.
Resources
- Point-to-Hyperplane Nearest Neighbor Search Beyond the Unit Hypersphere, SIGMOD 2021 (Original FH and NH paper)
- Compact Hyperplane Hashing with Bilinear Functions, ICML 2012 (Original BH paper)
- Hashing Hyperplane Queries to Near Points with Applications to Large-Scale Active Learning, NeurIPS 2010 (Original EH paper)
- Multilinear Hyperplane Hashing,CVPR 2016 (Original MH paper)
- Original C++ implementation by Huang Qiang
- Java implementation
License
The library is licensed under the MIT Software license. You can see more details in the LICENSE file.
Metadata
Release files for P2HNNS 1.0.3
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 |
|---|---|---|---|---|
| P2HNNS-1.0.3.tar.gz | 3.2 kB | Without provenance | Details for P2HNNS-1.0.3.tar.gz |
Release files / P2HNNS-1.0.3.tar.gz
| Download URL | P2HNNS-1.0.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
584dfeed819137847f099727e58f7b175946341739805e5c14341e40168d2111
|
|
BLAKE2b-256 checksum How to use checksums |
b5b567d92863f950a3f638b12f5e1746dac29322badb0bb70f13a35983a97e45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.15
|
Security for P2HNNS 1.0.3
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.