(layerDefinitions)
| 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; |
no test coverage detected