MCPcopy Create free account
hub / github.com/DFin/Neural-Network-Visualisation / maxAbsValue

Function maxAbsValue

assets/main.js:2927–2936  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

2925}
2926
2927function maxAbsValue(values) {
2928 let max = 0;
2929 for (let i = 0; i < values.length; i += 1) {
2930 const magnitude = Math.abs(values[i]);
2931 if (magnitude > max) {
2932 max = magnitude;
2933 }
2934 }
2935 return max;
2936}

Callers 1

updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected