MCPcopy
hub / github.com/Doorman11991/smallcode / verdict

Function verdict

bench/diff.js:117–122  ·  view source on GitHub ↗
(deltaReward, taskRegressions, threshold)

Source from the content-addressed store, hash-verified

115};
116
117function verdict(deltaReward, taskRegressions, threshold) {
118 if (taskRegressions.hard.length > 0) return VERDICT.REGRESSED;
119 if (deltaReward >= threshold) return VERDICT.IMPROVED;
120 if (deltaReward <= -threshold) return VERDICT.REGRESSED;
121 return VERDICT.NOISE;
122}
123
124function exitCodeFor(v) {
125 if (v === VERDICT.IMPROVED) return 0;

Callers 2

bench_diff.test.jsFile · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected