set data to actually encode; separate from fit() because fit() could use different training data than what we actully compress
(self, X)
| 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: |