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

Method doc_to_target

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

Source from the content-addressed store, hash-verified

127 )
128
129 def doc_to_target(self, doc):
130 return " {}".format({1: "positive", 0: "negative"}[doc["label"]])
131
132 def construct_requests(self, doc, ctx):
133 ll_positive, _ = rf.loglikelihood(ctx, " positive")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected