MCPcopy Create free account
hub / github.com/PAIR-code/lit / predict

Method predict

lit_nlp/api/model.py:201–203  ·  view source on GitHub ↗

Run prediction on a list of inputs and return the outputs.

(self, inputs: Iterable[JsonDict], **kw)

Source from the content-addressed store, hash-verified

199
200 @abc.abstractmethod
201 def predict(self, inputs: Iterable[JsonDict], **kw) -> Iterable[JsonDict]:
202 """Run prediction on a list of inputs and return the outputs."""
203 pass
204
205
206ModelMap = Mapping[str, Model]

Callers 3

_get_predsMethod · 0.45
_get_interpretationsMethod · 0.45
predictMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected