(
self, doc, num_fewshot, provide_description=None, rnd=None, description=None
)
| 53 | return map(self._process_doc, self.dataset["test"]) |
| 54 | |
| 55 | def fewshot_context( |
| 56 | self, doc, num_fewshot, provide_description=None, rnd=None, description=None |
| 57 | ): |
| 58 | assert ( |
| 59 | num_fewshot == 0 |
| 60 | ), "PROST is designed to probe models in a zero-shot fashion only." |
| 61 | return super().fewshot_context( |
| 62 | doc=doc, num_fewshot=num_fewshot, rnd=rnd, description=description |
| 63 | ) |
| 64 | |
| 65 | def _process_doc(self, doc): |
| 66 | out_doc = { |
nothing calls this directly
no outgoing calls
no test coverage detected