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

Method doc_to_target

test/general/lm_eval/tasks/glue.py:409–410  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

407 )
408
409 def doc_to_target(self, doc):
410 return " {}".format(yesno(doc["label"]))
411
412 def construct_requests(self, doc, ctx):
413 ll_yes, _ = rf.loglikelihood(ctx, " yes")

Callers

nothing calls this directly

Calls 1

yesnoFunction · 0.90

Tested by

no test coverage detected