MCPcopy Create free account
hub / github.com/deepseek-ai/FlashMLA / geomean

Function geomean

tests/test_flash_mla_sparse_decoding.py:299–301  ·  view source on GitHub ↗
(l)

Source from the content-addressed store, hash-verified

297 console.print(table)
298
299 def geomean(l) -> float:
300 import numpy
301 return numpy.exp(numpy.mean(numpy.log(l)))
302
303 num_correct_testcases = [result.is_correct for t, result in results if t.check_correctness].count(True)
304 num_correctness_cases = sum([1 for t in testcases if t.check_correctness])

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected