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
Click to show internal directories.
Click to hide internal directories.