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

Method construct_requests

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

Source from the content-addressed store, hash-verified

130 return " {}".format({1: "positive", 0: "negative"}[doc["label"]])
131
132 def construct_requests(self, doc, ctx):
133 ll_positive, _ = rf.loglikelihood(ctx, " positive")
134 ll_negative, _ = rf.loglikelihood(ctx, " negative")
135 return ll_positive, ll_negative
136
137 def process_results(self, doc, results):
138 ll_positive, ll_negative = results

Callers

nothing calls this directly

Calls 1

loglikelihoodMethod · 0.45

Tested by

no test coverage detected