(self, example: JsonDict)
| 28 | """Implements lit.Model interface for a set of pre-computed predictions.""" |
| 29 | |
| 30 | def key_fn(self, example: JsonDict) -> str: |
| 31 | reduced_example: JsonDict = { |
| 32 | k: example[k] |
| 33 | for k in self.input_identifier_keys |
| 34 | } |
| 35 | return caching.input_hash(reduced_example) |
| 36 | |
| 37 | def description(self): |
| 38 | return self._description |
no outgoing calls
no test coverage detected