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

Method set_data

python/bolt/bolt_api.py:509–513  ·  view source on GitHub ↗

set data to actually encode; separate from fit() because fit() could use different training data than what we actully compress

(self, X)

Source from the content-addressed store, hash-verified

507 return self
508
509 def set_data(self, X):
510 """set data to actually encode; separate from fit() because fit()
511 could use different training data than what we actully compress"""
512 self._encoder_.set_data(self._preproc(X))
513 self._n = len(X)
514
515 def transform(self, q, unquantize=False):
516 if self.reduction == Reductions.DOT_PRODUCT:

Callers 3

_create_randn_encoderFunction · 0.95
set_dataMethod · 0.45
fitMethod · 0.45

Calls 1

_preprocMethod · 0.95

Tested by 1

_create_randn_encoderFunction · 0.76