MCPcopy Index your code
hub / github.com/google/agents-cli / yScale

Function yScale

docs/src/javascripts/lifecycle.js:720–720  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

718 const xMin = 1, xMax = EVAL_HISTORY.length;
719 const xScale = (i) => padL + ((i - xMin) / (xMax - xMin)) * (W - padL - padR);
720 const yScale = (s) => padT + (1 - s) * (H - padT - padB);
721 const fullPath = EVAL_HISTORY.map((p, i) => (i === 0 ? "M" : "L") + " " + xScale(p.iter) + " " + yScale(p.score)).join(" ");
722 const yT = yScale(0.8);
723

Callers 3

initEvalLoopFunction · 0.85
setRevealedFunction · 0.85
initRollingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected