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

Method __init__

python/bolt/bolt_api.py:401–404  ·  view source on GitHub ↗
(self, reduction=Reductions.SQUARED_EUCLIDEAN,
                 accuracy=Accuracy.MEDIUM)

Source from the content-addressed store, hash-verified

399class Encoder(object):
400
401 def __init__(self, reduction=Reductions.SQUARED_EUCLIDEAN,
402 accuracy=Accuracy.MEDIUM):
403 self._enc_bytes = _acc_to_nbytes[accuracy]
404 self.reduction = reduction
405
406 def _preproc(self, X):
407 # TODO rows of X also needs to have variance >> 1 to avoid

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected