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

Method __init__

python/bolt/bolt_api.py:240–243  ·  view source on GitHub ↗
(self, nbytes)

Source from the content-addressed store, hash-verified

238 """Stand-in for cpp impl; only for debuging"""
239
240 def __init__(self, nbytes):
241 self._enc_bytes = nbytes
242 self.ncodebooks = 2 * nbytes
243 self._encoder = bolt.BoltEncoder(nbytes)
244
245 def set_centroids(self, centroids):
246 # accept centroids as 2D array like cpp; but we'll need them 3D

Callers

nothing calls this directly

Calls 1

BoltEncoderMethod · 0.80

Tested by

no test coverage detected