lsh

command module
v0.0.0-...-15ac276 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 5 Imported by: 0

README

Locality sensetive hashing

Proposal

One of the most important things in machine learning is a problem of fast search in high-dimensional vector spaces.
So the goal of this project is to build a simple approximate nearest neighbors (ANN for short) search service.
We have two basic groups of algorithms to perform the ANN search:

I've decided to go with the LSH algorithm since it's pretty simple to implement and you can store datapoints according to generated hashes in a simple key-value storage.

Local sensitive hashing reference

LSH algorithm implies generation of random plane equation coefs.

// TODO: how the algorithm works

Here are visual examples of the planes generation for angular and non-angular distance metrics:

// TODO: complexety analysis

Building and running

Installing hdf5:

mkdir -p /tmp/setup
apt-get install build-essential && \
    wget -q ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4/hdf5-1.8.13.tar.gz && \
    tar -xzf hdf5-1.8.13.tar.gz

cd /tmp/setup/hdf5-1.8.13
./configure  --prefix=/usr/local && \
    make && make install && \
    rm -rf /tmp/setup/

// TODO:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL