densified_wta_hash

package
v0.0.0-...-eb36bdb Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Overview

Implementation of Densified Winner Take All (WTA) hash

Algorithm from the paper:

Densified Winner Take All (WTA) Hashing for Sparse Datasets
Beidi Chen, Anshumali Shrivastava
http://auai.org/uai2018/proceedings/papers/321.pdf

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DensifiedWtaHash

type DensifiedWtaHash struct {
	// contains filtered or unexported fields
}

func New

func New(numHashes, numOfBitsToHash int) *DensifiedWtaHash

func (*DensifiedWtaHash) GetHash

func (dw *DensifiedWtaHash) GetHash(data []index_value.Pair) []int

func (*DensifiedWtaHash) GetHashEasy

func (dw *DensifiedWtaHash) GetHashEasy(data []float64, topK int) []int

func (*DensifiedWtaHash) GetRandDoubleHash

func (dw *DensifiedWtaHash) GetRandDoubleHash(binId, count int) int

Jump to

Keyboard shortcuts

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