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

Method describeLayerName

assets/main.js:1511–1517  ·  view source on GitHub ↗
(rawName, index)

Source from the content-addressed store, hash-verified

1509 }
1510
1511 describeLayerName(rawName, index) {
1512 if (typeof rawName === "string" && rawName.trim().length > 0) {
1513 const normalized = rawName.replace(/[_-]+/g, " ").trim();
1514 return normalized.length ? normalized : `Layer ${index + 1}`;
1515 }
1516 return `Layer ${index + 1}`;
1517 }
1518
1519 update(model) {
1520 if (!model || !Array.isArray(model.layers) || model.layers.length === 0) {

Callers 1

updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected