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

Method fewshot_examples

test/general/lm_eval/base.py:598–602  ·  view source on GitHub ↗
(self, k, rnd)

Source from the content-addressed store, hash-verified

596 return doc
597
598 def fewshot_examples(self, k, rnd):
599 if self._training_docs is None:
600 self._training_docs = list(self.training_docs())
601
602 return rnd.sample(self._training_docs, k)
603
604 def doc_to_decontamination_query(self, doc):
605 print(

Callers 1

fewshot_contextMethod · 0.95

Calls 1

training_docsMethod · 0.95

Tested by

no test coverage detected