MCPcopy Create free account
hub / github.com/RUSH-LAB/LSH_Memory / query

Method query

memory.py:87–145  ·  view source on GitHub ↗

Compute the nearest neighbor of the input queries. Arguments: x: A normalized matrix of queries of size (batch_size x key_dim) y: A matrix of correct labels (batch_size x 1) Returns: y_hat, A (batch-size x 1) matrix - the neare

(self, x, y, predict=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

cnn.pyFile · 0.80

Calls 3

updateMethod · 0.95
flattenFunction · 0.85
MemoryLossFunction · 0.85

Tested by

no test coverage detected