As in the convolutional neural network, implement the method of back propagation of error on python. The PyBrain library is used.

1 answer 1

Example :

>>> from pybrain.supervised.trainers import BackpropTrainer >>> net = buildNetwork(2, 3, 1, bias=True, hiddenclass=TanhLayer) >>> trainer = BackpropTrainer(net, ds) >>> trainer.train() 0.31516384514375834 >>> trainer.trainUntilConvergence() ...