>>101282756
Sure, here's a repo of the network and code to create that image, the js file is a little cluttered but if you go to the 'Network' class, and see the 'calculateDeltasSigmoid' function within, it does the training along with 'adjustWeights'.
The general procedure looks like:
let inputs = [new Data(0),new Data(0)] //input example to structure from
let structure = [3, 2] //example structure, one hidden layer of 3, and an output size of 2
let network = new Network(inputs, structure)
//then to train
let trainingData = [new Data(.7),new Data(.3)]
network.compute(trainingData)
let goals = [new Data(.3), new Data(.7)
network.calculateDeltasSigmoid(goals)
network.adjustWeights()
I hope I got the code tag right
https://github.com/Packmanager9/ActivationAtlas_OCR