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

Function formatStrength

assets/main.js:626–626  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

624 const min = Number.parseFloat(strengthSlider.min) || 0;
625 const max = Number.parseFloat(strengthSlider.max) || 1;
626 const formatStrength = (value) => `${Math.round(value * 100)}%`;
627 const syncStrengthUi = (value) => {
628 strengthSlider.value = String(value);
629 strengthValue.textContent = formatStrength(value);

Callers 1

syncStrengthUiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected