()
| 2694 | } |
| 2695 | |
| 2696 | updateNetworkWeights() { |
| 2697 | this.disposeConnectionMeshes(); |
| 2698 | this.buildConnections(); |
| 2699 | if (this.selectedNeuron) { |
| 2700 | this.updateConnectionVisibility(); |
| 2701 | this.selectionConnectionData = null; |
| 2702 | this.buildSelectionConnectionMeshes(); |
| 2703 | if (this.lastDisplayActivations && this.lastNetworkActivations) { |
| 2704 | this.updateSelectionVisuals(); |
| 2705 | } |
| 2706 | } |
| 2707 | } |
| 2708 | |
| 2709 | setMaxConnectionsPerNeuron(limit) { |
| 2710 | const clamped = Math.max(1, Math.floor(limit)); |
no test coverage detected