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

Method updateSelectionVisuals

assets/main.js:2286–2302  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2284 }
2285
2286 updateSelectionVisuals() {
2287 if (!this.selectedNeuron) return;
2288 if (!this.lastNetworkActivations) return;
2289 if (!this.selectionConnectionData) {
2290 this.selectionConnectionData = this.collectSelectionConnectionData();
2291 }
2292 this.updateSelectionGlow();
2293 const detail = this.buildSelectionDetail();
2294 this.currentSelectionDetail = detail;
2295 this.updateSelectedConnectionColors(detail);
2296 if (typeof this.focusChangeCallback === "function") {
2297 this.focusChangeCallback(detail);
2298 }
2299 if (typeof this.requestRender === "function") {
2300 this.requestRender();
2301 }
2302 }
2303
2304 buildSelectionDetail() {
2305 if (!this.selectedNeuron) return null;

Callers 2

updateNetworkWeightsMethod · 0.95
updateMethod · 0.95

Tested by

no test coverage detected