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

Method clearOutputLabels

assets/main.js:2560–2570  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2558 }
2559
2560 clearOutputLabels() {
2561 if (!this.outputLabels.length || !this.labelGroup) return;
2562 this.outputLabels.forEach((sprite) => {
2563 if (sprite.material.map) {
2564 sprite.material.map.dispose();
2565 }
2566 sprite.material.dispose();
2567 this.labelGroup.remove(sprite);
2568 });
2569 this.outputLabels = [];
2570 }
2571
2572 createOutputLabels(positions) {
2573 if (!this.labelGroup) return;

Callers 1

buildLayersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected