(self, example: JsonDict)
| 71 | } |
| 72 | |
| 73 | def _predict_single(self, example: JsonDict): |
| 74 | key = self.key_fn(example) |
| 75 | if key not in self._index: |
| 76 | raise KeyError( |
| 77 | f'Example {key} not found in stored predictions: {str(example)}') |
| 78 | return self._index[key] |
| 79 | |
| 80 | ## |
| 81 | # LIT API implementation |