MCPcopy Create free account
hub / github.com/OpenSparseLLMs/MoM / fewshot_examples

Method fewshot_examples

lm-eval-harness/lm_eval/api/task.py:331–335  ·  view source on GitHub ↗
(self, k, rnd)

Source from the content-addressed store, hash-verified

329 return self._instances
330
331 def fewshot_examples(self, k, rnd):
332 if self._training_docs is None:
333 self._training_docs = list(self.training_docs())
334
335 return rnd.sample(self._training_docs, k)
336
337 def doc_to_decontamination_query(self, doc) -> None:
338 print(

Callers 1

fewshot_contextMethod · 0.95

Calls 2

training_docsMethod · 0.95
sampleMethod · 0.45

Tested by

no test coverage detected