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

Class BalancedSampler

lm-eval-harness/lm_eval/api/samplers.py:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86class BalancedSampler(ContextSampler):
87 def sample(self, n) -> None:
88 """
89 TODO: this should return approximately class-balanced samples from our fewshot examples.
90 TODO: what order should they be in? maybe random?
91 """
92
93 pass
94
95
96class ManualSampler(ContextSampler):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected