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

Method dists_true

experiments/python/main.py:141–142  ·  view source on GitHub ↗
(self, X, q)

Source from the content-addressed store, hash-verified

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)
143
144 def fit_query(self, q, **sink):
145 self.q_dists_ = _fit_pq_lut(q, centroids=self.centroids,

Callers

nothing calls this directly

Calls 1

sumMethod · 0.45

Tested by

no test coverage detected