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

Method process_results

test/general/lm_eval/base.py:834–842  ·  view source on GitHub ↗
(self, doc, results)

Source from the content-addressed store, hash-verified

832 return req
833
834 def process_results(self, doc, results):
835 (loglikelihood,) = results
836 words = self.count_words(doc)
837 bytes_ = self.count_bytes(doc)
838 return {
839 "word_perplexity": (loglikelihood, words),
840 "byte_perplexity": (loglikelihood, bytes_),
841 "bits_per_byte": (loglikelihood, bytes_),
842 }
843
844 def aggregation(self):
845 return {

Callers

nothing calls this directly

Calls 2

count_wordsMethod · 0.95
count_bytesMethod · 0.95

Tested by

no test coverage detected