Page 1 of 1

XOR-Problem des neuronalen Netzwerks, das auf 0,5 konvergiert

Posted: 19 Jan 2025, 19:38
by Guest
Ich arbeite daran, ein neuronales Netzwerk von Grund auf in js zu programmieren, und habe Folgendes implementiert:

Code: Select all

class Network{
constructor(layerSizes, activation){
this.activation = activation[0]
this.activationPrime = activation[1]
this.inverseActivation = activation[2]
this.numLayers = layerSizes.length
this.layerSizes = layerSizes
this.layers = []
this.state = []
this.outputs = []
this.train = false
for (let i=0; i