Adds perceptron training