MCPcopy Create free account
hub / github.com/dblalock/bolt / encode_q

Method encode_q

experiments/python/main.py:138–139  ·  view source on GitHub ↗
(self, q, **sink)

Source from the content-addressed store, hash-verified

136 return idxs + self.offsets # offsets let us index into raveled dists
137
138 def encode_q(self, q, **sink):
139 return None # we use fit_query() instead, so fail fast
140
141 def dists_true(self, X, q):
142 return np.sum(self.elemwise_dist_func(X, q), axis=-1)

Callers 1

eval_encoderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected