MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / solved

Function solved

benchmarks/audit/wester.ts:379–379  ·  view source on GitHub ↗
(res: any)

Source from the content-addressed store, hash-verified

377 let valid = 0, ok = 0;
378 for (let i = 0; i < ref.length; i++) {
379 const r = ref[i], g = res.values?.[i];
380 if (r == null || g == null || !isFinite(r) || !isFinite(g)) continue;
381 valid++;
382 if (Math.abs(g - r) <= c.tol * (1 + Math.abs(r)) + 1e-9) ok++;

Callers 2

sgFunction · 0.70
disagreeFunction · 0.70

Calls 1

isFiniteFunction · 0.85

Tested by

no test coverage detected