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

Method updateLayers

assets/main.js:1323–1329  ·  view source on GitHub ↗
(layerDefinitions)

Source from the content-addressed store, hash-verified

1321 }
1322
1323 updateLayers(layerDefinitions) {
1324 if (!Array.isArray(layerDefinitions) || layerDefinitions.length === 0) {
1325 throw new Error("Neue Layerdefinitionen müssen mindestens eine Schicht enthalten.");
1326 }
1327 this.layers = layerDefinitions.map((layer, index) => this.normaliseLayer(layer, index));
1328 this.architecture = this.computeArchitecture(this.layers);
1329 }
1330
1331 propagate(pixels) {
1332 const { mean, std } = this.normalization;

Callers 1

onSnapshotChangeFunction · 0.80

Calls 2

normaliseLayerMethod · 0.95
computeArchitectureMethod · 0.95

Tested by

no test coverage detected