MCPcopy Create free account
hub / github.com/cli99/llm-analysis / within_range

Function within_range

llm_analysis/utils.py:53–54  ·  view source on GitHub ↗
(val, target, tolerance)

Source from the content-addressed store, hash-verified

51
52
53def within_range(val, target, tolerance):
54 return abs(val - target) / target < tolerance

Callers 11

trainingMethod · 0.90
test_training_zero3_1Function · 0.90
test_training_zero3_2Function · 0.90
test_training_mt_nlg_1Function · 0.90
test_training_mt_nlg_2Function · 0.90
test_llama2_70bFunction · 0.90

Calls

no outgoing calls

Tested by 9

test_training_zero3_1Function · 0.72
test_training_zero3_2Function · 0.72
test_training_mt_nlg_1Function · 0.72
test_training_mt_nlg_2Function · 0.72
test_llama2_70bFunction · 0.72