MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / fewshot_context

Method fewshot_context

test/general/lm_eval/tasks/asdiv.py:57–63  ·  view source on GitHub ↗
(
        self, doc, num_fewshot, provide_description=None, rnd=None, description=None
    )

Source from the content-addressed store, hash-verified

55 raise NotImplementedError("This dataset has no test docs")
56
57 def fewshot_context(
58 self, doc, num_fewshot, provide_description=None, rnd=None, description=None
59 ):
60 assert num_fewshot == 0, "ASDiv is intended only for the zero-shot setting."
61 return super().fewshot_context(
62 doc=doc, num_fewshot=num_fewshot, rnd=rnd, description=description
63 )
64
65 def doc_to_text(self, doc):
66 # TODO: add solution-type

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected