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

Method fit_query

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

Source from the content-addressed store, hash-verified

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,
146 elemwise_dist_func=self.elemwise_dist_func)
147
148 def dists_enc(self, X_enc, q_unused=None):
149 # this line has each element of X_enc index into the flattened

Callers 1

eval_encoderFunction · 0.45

Calls 1

_fit_pq_lutFunction · 0.70

Tested by

no test coverage detected