Welcome to P2HNNS’s documentation!

P2HNNS is 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).

Installation

The library can be installed via the pip package manager using the following command

pip install P2HNNS

Indices and tables