def predict(self, x):
        # Compute coarse quantizer codes
        coarse_codes = self.predict_coarse(x)

        # Compute fine codes
        fine_codes = self.predict_fine(x, coarse_codes)

        return LOPQCode(coarse_codes, fine_codes)
Compute both coarse and fine codes for a datapoint.
dataset/ETHPy150Open yahoo/lopq/python/lopq/model.py/LOPQModel.predict